Home Email RSS Feed

Forcing Outlook to send emails only with subject

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.5 out of 5)

If you've enjoyed this post, you might want to subscribe my RSS feed or email alerts for free updates. Thanks for visiting and come back again.


It’s important and mandatory that the emails we send have relevant “subject” to it. At times, we miss to mention the subject and send email. Please follow the simple steps below which will prevent you from sending a mail without a subject. This should/must be configured in office mailbox in which subjects are more crucial.

Here are the below steps

  • Open your outlook
  • Press Alt+F11. This opens the Visual Basic editor
  • On the Left Pane, one can see “Microsoft Outlook Objects”, expand this. Now one can see the “ThisOutLookSession.”
  • Click on “ThisOutLookSession”.
  • 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(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

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 subject.

Tags: , , ,

1.

ASetti said,

August 8, 2006 @ 3:57 pm

I use T’bird as my mail client, but for my current customer’s mail, I have to use Outlook.

While it is a standard feature in T’bird — in fact, it was there in Netscape 4.x — it is not there even in Outlook 2003. So, the other day when I sent out subject-less mail to a mailing list, I Googled for it, but your post didn’t show up then. Today, I StumbledUpon it — and it works fine!

Thanks and keep up your good work! BTW, I lived in Chennai-Egmore for 12 years…

2.

benedict herold said,

August 24, 2006 @ 4:01 pm

Googling didn’t help you since this page might not been there when u tried.. anyway thanks to StumbleUpon.!!! Thanks for the comments as well.. btw grt to know that… where are you presently?

3.

Katie said,

March 7, 2008 @ 11:57 am

When I hit Alt-F11, the VB screen comes up but I don’t have a left pane and I don’t see “Microsoft Outlook Object.” What might I be doing incorrectly?

Thank you!

4.

Wag said,

April 20, 2008 @ 12:05 pm

Hi that is really useful - except I work with categories so I have replaced subject with categories in the code and it works! Brilliant - every email automatically filed.

5.

Wag said,

April 21, 2008 @ 7:26 am

But it doesnt seem to work the next time I open an Outlook session - why is this?

6.

Amit Oza said,

April 25, 2008 @ 7:11 am

Fails the next time i open outlook..help…

RSS feed for comments on this post · TrackBack URI

Leave a Comment