Forcing Outlook to send emails only with subject
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.
Popularity: 5% [?]
| Print article | This entry was posted by Benedict Herold on July 22, 2006 at 1:50 am, and is filed under tweaks. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |



about 4 years ago
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…
about 4 years ago
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?
about 2 years ago
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!
about 2 years ago
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.
about 2 years ago
But it doesnt seem to work the next time I open an Outlook session – why is this?
about 2 years ago
Fails the next time i open outlook..help…
about 2 years ago
i need to allow the subject to all outlook users, i have about 200 user using outlook. please advice me how to disallow them to send outlook emails without subject. they must write a subject…..
about 1 year ago
Thanks but it worked only once.from next time onwords id doesn’t worked.i think this is because i am using outlook 2007 or there may be another reason.so pls help me
about 1 year ago
I wanted to publish this macro in all computers in a domain,but it didn’t work.Could I use my exchange server to avoid sending message without subjects?
about 6 months ago
Thank you! That is exactly what I needed – So far it works great with Office 2007!