IT Community - Software Programming, Web Development and Technical Support

Outlook - Mail subject empty alert

This is a discussion on Outlook - Mail subject empty alert within the Microsoft forums, part of the Search Engines category; Sometime we forget to mention the mail subject while sending an official mail, a mail without subject might create bad ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Webmaster Space > Search Engines > Microsoft

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-10-2007, 08:56 AM
priyan priyan is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 133
priyan is on a distinguished road
Default Outlook - Mail subject empty alert

Sometime we forget to mention the mail subject while sending an official mail, a mail without subject might create
bad impression about the sender. To avoid this go thru the below steps.

1. Open your outlook

2. Press Alt+F11. This opens the Visual Basic editor

3. On the Left Pane, one can see "Microsoft Outlook Objects" or "Project1", expand this. Now one can see the "ThisOutLookSession" or
Menu – View – Project Explorer and expand that till "This Outlook Session" comes.

4. Double click on "ThisOutLookSession". It will open up a code pane.

5. Copy and Paste the following code in the right pane.(Code Pane)

'================================================= ===========================
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim strSubject As String
strSubject = Item.Subject
If Len(Trim(strSubject)) = 0 Then
Prompt$ = "Subject is Empty. Are you sure you want to send the Mail?"
If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, "Check for Subject") = vbNo Then
Cancel = True
End If
End If
End Sub
'================================================= ===========================

6. Save this and now close the VB Code editor and take a breath. From now on, this macro will make sure you do not make the mistake of sending a mail without a subject .

No check this functionality in outlook !
__________________
Keep smiling...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-11-2007, 07:57 AM
Murali Murali is offline
D-Web Master
 
Join Date: Feb 2007
Location: India-Chennai.
Posts: 386
Murali is on a distinguished road
Send a message via AIM to Murali
Default Re: Outlook - Mail subject empty alert

Hi Priyan,

But it still seems to be struggling a bit.

I just Compiled the code in my Outlook and try to send a mail without subject great ...... it shows me the alert and iam happy.

Once i closed the outlook and tried the same otherday but mail sent without subject...

Not working all the time, any ideas regarding this?
__________________
-Murali..
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to bold a text in alert or confirm alert box? $enthil HTML, CSS and Javascript Coding Techniques 7 10-26-2007 06:24 AM
Empty a recycle bin in C# garunprasad C# Programming 2 08-25-2007 02:56 AM
Access e-mail using Outlook Web Access gattuso Server Management 0 07-19-2007 07:20 AM
what is the Difference between isset() and empty() . raj PHP Programming 2 07-19-2007 01:03 AM
Post subject: php_errormsg: How turned it on? montyauto PHP Programming 2 07-13-2007 08:18 AM


All times are GMT -7. The time now is 10:59 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0