{"id":2020,"date":"2011-05-10T00:08:38","date_gmt":"2011-05-10T00:08:38","guid":{"rendered":"http:\/\/nycphantom.com\/journal\/?p=2020"},"modified":"2011-05-10T00:08:38","modified_gmt":"2011-05-10T00:08:38","slug":"outlook-missing-warning-on-empty-subject","status":"publish","type":"post","link":"http:\/\/nycphantom.com\/journal\/?p=2020","title":{"rendered":"Outlook Missing Warning on Empty Subject"},"content":{"rendered":"<p>\nA couple of times I've sent emails with blank subject line unknowningly.\n<\/p>\n<p>\nBlank subject emails are often blocked or filtered.\n<\/p>\n<p>\nFor Outlook 2007, and perhaps 2003, there doesn't seem to be a warning pop-up upon sending an email with an empty subject line.\n<\/p>\n<p>\nSolution: (Thanks to <a href=\"http:\/\/ankitjain.info\/ankit\/2006\/01\/20\/outlook-hack-empty-subject-warning\/\" target=\"_blank\">Ankit Jain<\/a>)\n<\/p>\n<p>\nNeed to write macro in Visual Basic editor (Alt-F11) -&gt; Microsoft Office Outlook-&gt;ThisOutlookSession (double click) and paste code below to right panel.\n<\/p>\n<p>\n<strong>For MS Outlook 2007 <\/strong>(Works)\n<\/p>\n<p>\n<em>Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)<br \/>\nDim Answer As String<\/em>\n<\/p>\n<p><em><br \/>\n<\/em><\/p>\n<p>\n<em>If IsNull(Item.Subject) Or Len(Item.Subject) = 0 Then<\/em>\n<\/p>\n<p><em><br \/>\n<\/em><\/p>\n<p>\n<em>    Answer = MsgBox(&quot;Subject field is empty. Do you still want to<br \/>\nsend the e-mail? &quot;, vbYesNo + vbQuestion, &quot;Missing subject&quot;)<\/em>\n<\/p>\n<p><em><br \/>\n<\/em><\/p>\n<p>\n<em>    If Answer = vbYes Then<br \/>\nCancel = False<\/em>\n<\/p>\n<p><em><br \/>\n<\/em><\/p>\n<p>\n<em>    ElseIf Answer = vbNo Then<br \/>\nCancel = True<\/em>\n<\/p>\n<p><em><br \/>\n<\/em><\/p>\n<p>\n<em>    End If<\/em>\n<\/p>\n<p><em><br \/>\n<\/em><\/p>\n<p>\n<em>End If<br \/>\nEnd Sub<\/em>\n<\/p>\n<p>\n&nbsp;\n<\/p>\n<p>\n&nbsp;\n<\/p>\n<p>\n<strong>For MS Outlook 2003 (I have not tested)<br \/>\n<\/strong>\n<\/p>\n<p>\n<em><a name=\"FONT COLOR=\"><\/a>Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)<br \/>\n    Dim strSubject As String<br \/>\n    strSubject = Item.Subject<br \/>\n    If Len(strSubject) = 0 Then<br \/>\n        Prompt$ = &quot;Subject is Empty. Are you sure you want to send the Mail?&quot;<br \/>\n        If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, &quot;Check for Subject&quot;) = vbNo Then<br \/>\n                Cancel = True<br \/>\n        End If<br \/>\n    End If<br \/>\n End Sub <\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A couple of times I've sent emails with blank subject line unknowningly. Blank subject emails are often blocked or filtered. For Outlook 2007, and perhaps 2003, there doesn't seem to be a warning pop-up upon sending an email with an &hellip; <a href=\"http:\/\/nycphantom.com\/journal\/?p=2020\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2020","post","type-post","status-publish","format-standard","hentry","category-technical"],"_links":{"self":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/2020","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2020"}],"version-history":[{"count":0,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=\/wp\/v2\/posts\/2020\/revisions"}],"wp:attachment":[{"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2020"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nycphantom.com\/journal\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}