{"id":19,"date":"2006-07-22T01:50:00","date_gmt":"2006-07-22T05:50:00","guid":{"rendered":"http:\/\/www.benh.org\/techie\/2006\/07\/restrict-outlook-from-sending-out-mails-without-subject\/"},"modified":"2007-06-20T16:04:47","modified_gmt":"2007-06-20T21:04:47","slug":"forcing-outlook-to-send-emails-only-with-subject","status":"publish","type":"post","link":"https:\/\/www.benh.org\/techblog\/2006\/07\/forcing-outlook-to-send-emails-only-with-subject\/","title":{"rendered":"Forcing Outlook to send emails only with subject"},"content":{"rendered":"<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" ><\/div><p><!--adsense#ads--><br \/>\nIt&#8217;s important and mandatory that the emails we send have relevant &#8220;subject\u00e2\u20ac\u009d 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.<\/p>\n<p>Here are the below steps<\/p>\n<ul>\n<li>Open your outlook<\/li>\n<li>Press Alt+F11. This opens the Visual Basic editor<\/li>\n<li>On the Left Pane, one can see &#8220;Microsoft Outlook Objects&#8221;, expand this. Now one can see the &#8220;ThisOutLookSession.&#8221;\n<li>Click on &#8220;ThisOutLookSession&#8221;.<\/li>\n<li>Copy and Paste the following code in the right pane.(Code Pane)<\/li>\n<\/ul>\n<p><code>Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)<br \/>\nDim strSubject As String<br \/>\nstrSubject = Item.Subject<br \/>\nIf Len(strSubject) = 0 Then<br \/>\nPrompt$ = \"Subject is Empty. Are you sure you want to send the Mail?\"<br \/>\nIf MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, \"Check for Subject\") = vbNo Then<br \/>\nCancel = True<br \/>\nEnd If<br \/>\nEnd If<br \/>\nEnd Sub<br \/>\n<\/code><br \/>\nSave 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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s important and mandatory that the emails we send have relevant &#8220;subject\u00e2\u20ac\u009d 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. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[3],"tags":[25,48,49,59],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-tweaks","tag-email","tag-microsoft","tag-outlook","tag-productivity"],"_links":{"self":[{"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":0,"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}