eCharcha.Com   Support eCharcha.Com. Click on sponsor ad to shop online!

Advertise Here

Go Back   eCharcha.Com > Science and Technology > How to

Notices

How to Stuck for an answer to "How to do .."?

Reply
 
Thread Tools Display Modes
  #1  
Old March 27th, 2006, 11:31 AM
echarcha's Avatar
echarcha echarcha is offline
Sutradhar {admin}
 
Join Date: Jul 2000
Location: CA, USA
Posts: 44,572
echarcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond repute
Question How to prevent Outlook from sending an email with a blank Subject line?

Hi,

Sometimes we forget to put the SUBJECT in the mails which we send. That could be deadly sometimes when you are communicating to the clients; to avoid such a situation, follow the steps below. There after when you send a mail without subject, a pop up window asks for your confirmation. You can try it !


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", expand this. Now one can see the "ThisOutLookSession".
4.
Click on "ThisOutLookSession".
5.
Copy and Paste the following code in the right pane. (Code Pane)
Code:
 
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) 
  Dim strSubject As String 
  strSubject = Item.Subject 
  If Len(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.
7.
In Outlook Go to Tools > Macros > Security > In the Security Level Tab > Select the option MEDIUM > OK
8.
Now Restart the Outlook, a dialog box pops up to Disable / Enable the macros; select as Enable Macros (this option will pops up when ever you restart outlook.
9.
From now on , this macro will make sure you do not make the mistake of sending a mail without subject

That's it!
__________________
eCharcha.com
-Loud and Proud Desi Opinions

Last edited by echarcha; March 27th, 2006 at 01:09 PM.
Reply With Quote
  #2  
Old March 27th, 2006, 12:38 PM
TerminatorJR's Avatar
TerminatorJR TerminatorJR is offline
Banned
 
Join Date: Nov 2004
Posts: 4,006
TerminatorJR has much to be proud ofTerminatorJR has much to be proud ofTerminatorJR has much to be proud ofTerminatorJR has much to be proud ofTerminatorJR has much to be proud ofTerminatorJR has much to be proud ofTerminatorJR has much to be proud ofTerminatorJR has much to be proud of
Re: How to prevent Outlook from sending an email with a blank Subject line?

Quote:
Originally Posted by echarcha
Code:
 
vbMsgBoxSetForeground, "Check for Subject") = vbNoThen

7.In Outlook Go to Tools > Macros > Security > In the Security Level Tab > Select the option MEDIUM > OK
It works; only I had to separate vbNo and Then with a space.

When I looked at my Outlook's Tools --> Macros --> Security, it was high. Is it safe to keep it at the medium level ?
Reply With Quote
  #3  
Old March 27th, 2006, 12:56 PM
padhu's Avatar
padhu padhu is offline
Third Echelon
 
Join Date: Aug 2000
Location: USA
Posts: 3,316
padhu is a name known to allpadhu is a name known to allpadhu is a name known to allpadhu is a name known to allpadhu is a name known to allpadhu is a name known to all
Re: How to prevent Outlook from sending an email with a blank Subject line?

I think you can do the same trick with Outlook Rules too rather than messing with VB Scripts.
Reply With Quote
  #4  
Old March 27th, 2006, 01:09 PM
echarcha's Avatar
echarcha echarcha is offline
Sutradhar {admin}
 
Join Date: Jul 2000
Location: CA, USA
Posts: 44,572
echarcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond repute
Re: How to prevent Outlook from sending an email with a blank Subject line?

Quote:
Originally Posted by TerminatorJR
It works; only I had to separate vbNo and Then with a space.

When I looked at my Outlook's Tools --> Macros --> Security, it was high. Is it safe to keep it at the medium level ?
Updated with a space now..
__________________
eCharcha.com
-Loud and Proud Desi Opinions
Reply With Quote
  #5  
Old March 27th, 2006, 01:21 PM
Napolean Napolean is offline
Senior eCharchan
 
Join Date: Jul 2001
Posts: 7,161
Napolean has a reputation beyond reputeNapolean has a reputation beyond reputeNapolean has a reputation beyond reputeNapolean has a reputation beyond reputeNapolean has a reputation beyond reputeNapolean has a reputation beyond reputeNapolean has a reputation beyond reputeNapolean has a reputation beyond reputeNapolean has a reputation beyond reputeNapolean has a reputation beyond reputeNapolean has a reputation beyond repute
Re: How to prevent Outlook from sending an email with a blank Subject line?

Quote:
Originally Posted by padhu
I think you can do the same trick with Outlook Rules too rather than messing with VB Scripts.
How do you do that?
Reply With Quote
  #6  
Old March 27th, 2006, 02:01 PM
padhu's Avatar
padhu padhu is offline
Third Echelon
 
Join Date: Aug 2000
Location: USA
Posts: 3,316
padhu is a name known to allpadhu is a name known to allpadhu is a name known to allpadhu is a name known to allpadhu is a name known to allpadhu is a name known to all
Re: How to prevent Outlook from sending an email with a blank Subject line?

My mistake. I thought you wanted to block email addresses with blank subject line inside. Sorry.
Reply With Quote
  #7  
Old October 28th, 2008, 02:06 PM
echarcha's Avatar
echarcha echarcha is offline
Sutradhar {admin}
 
Join Date: Jul 2000
Location: CA, USA
Posts: 44,572
echarcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond reputeecharcha has a reputation beyond repute
Re: How to prevent Outlook from sending an email with a blank Subject line?

I see a lot of folks landing on our technical How To pages.. Good to know
__________________
eCharcha.com
-Loud and Proud Desi Opinions
Reply With Quote
  #8  
Old February 22nd, 2011, 11:09 PM
dirtyfellow dirtyfellow is offline
Junior eCharchan
 
Join Date: Feb 2011
Posts: 5
dirtyfellow is on a distinguished road
Re: How to prevent Outlook from sending an email with a blank Subject line?

Quote:
Originally Posted by echarcha View Post
Hi,

Sometimes we forget to put the SUBJECT in the mails which we send. That could be deadly sometimes when you are communicating to the clients; to avoid such a situation, follow the steps below. There after when you send a mail without subject, a pop up window asks for your confirmation. You can try it !


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", expand this. Now one can see the "ThisOutLookSession".
4.
Click on "ThisOutLookSession".
5.
Copy and Paste the following code in the right pane. (Code Pane)
Code:
 
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) 
 Dim strSubject As String 
 strSubject = Item.Subject 
 If Len(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.
7.
In Outlook Go to Tools > Macros > Security > In the Security Level Tab > Select the option MEDIUM > OK
8.
Now Restart the Outlook, a dialog box pops up to Disable / Enable the macros; select as Enable Macros (this option will pops up when ever you restart outlook.
9.
From now on , this macro will make sure you do not make the mistake of sending a mail without subject

That's it!


Hi
It would be nice if u can provide the macro to prevent Outlook from sending an email without attachments ( mails which are intended for some attachments but sender usually forgets to attach the files )
Reply With Quote
  #9  
Old February 24th, 2011, 07:05 AM
Ravi's Avatar
Ravi Ravi is offline
Senior eCharchan
 
Join Date: Dec 2000
Location: Liberal Oasis
Posts: 2,493
Ravi has a reputation beyond reputeRavi has a reputation beyond reputeRavi has a reputation beyond reputeRavi has a reputation beyond reputeRavi has a reputation beyond reputeRavi has a reputation beyond reputeRavi has a reputation beyond reputeRavi has a reputation beyond reputeRavi has a reputation beyond reputeRavi has a reputation beyond reputeRavi has a reputation beyond repute
Re: How to prevent Outlook from sending an email with a blank Subject line?

Quote:
Originally Posted by dirtyfellow View Post
It would be nice if u can provide the macro to prevent Outlook from sending an email without attachments ( mails which are intended for some attachments but sender usually forgets to attach the files )
Not every mail has to have an attachment, and Outlook can't really read your mind to know you intended to attach a file.
__________________
() => new Beer();
Reply With Quote
Reply

Bookmarks

Tags
blank subject, email, empty subject, microsoft, microsoft outlook, prevent empty subject, subject


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to prevent Outlook from sending mail without attachments ? dirtyfellow How to 18 February 24th, 2011 06:55 AM
Outlook Express-Subjetc line with **SPAM** Budmaas Computing 9 June 2nd, 2010 12:19 AM
Oh those chain email letters.. Forward this email to 10 people or else echarcha Computing 3 October 3rd, 2005 04:55 AM
One line questions, deserve a one line answer! vme SoapBox 36 June 21st, 2002 05:37 AM
10 things to do ::: When u get a blank Call HindiIndy Life Abroad 2 October 19th, 2001 11:33 AM


All times are GMT -7. The time now is 06:57 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Site Copyright © eCharcha.Com 2000-2012.