如何防止MS Outlook 发送空白主题/主体的邮件?- Avoiding sending empty subject emails in Outlook
2009-12-16 15:21
1351 查看
Hi,
Sometimes we forget to put the [b]SUBJECT[/b] 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 !
[b]Steps:[/b]
1.Open your outlook
2.Press Alt+F11. This opens the Visual Basic editor
3.On the Left Pane, one can see "[b] Microsoft Outlook[/b] [b]Objects[/b]", expand this. Now one can see the "[b]ThisOutLookSession[/b]".
4.Click on "[b]ThisOutLookSession[/b]".
5.Copy and Paste the following code in the right pane. ([b]Code[/b] [b]Pane[/b])
Code:
6.Save this and Now close the VB Code editor.
7.In Outlook Go to [b]Tools[/b] > [b]Macros[/b] > [b]Security[/b] > In the [b]Security Level [/b]Tab > Select the option [b]MEDIUM[/b] > OK
8.Now Restart the Outlook, a dialog box pops up to [b]Disable / Enable the macros[/b]; select as [b]Enable[/b] [b]Macros (this option will pops up when ever you restart outlook.[/b]
9.From now on , this macro will make sure you do not make the mistake of sending a mail without subject
That's it!
Sometimes we forget to put the [b]SUBJECT[/b] 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 !
[b]Steps:[/b]
1.Open your outlook
2.Press Alt+F11. This opens the Visual Basic editor
3.On the Left Pane, one can see "[b] Microsoft Outlook[/b] [b]Objects[/b]", expand this. Now one can see the "[b]ThisOutLookSession[/b]".
4.Click on "[b]ThisOutLookSession[/b]".
5.Copy and Paste the following code in the right pane. ([b]Code[/b] [b]Pane[/b])
Code:
[b]Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)[/b] [b] Dim strSubject As String[/b] [b] strSubject = Item.Subject[/b] [b] If Len(strSubject) = 0 Then[/b] [b] Prompt$ = "Subject is Empty. Are you sure you want to send the Mail?"[/b] [b] If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, "Check for Subject") = vbNo [/b][b]Then[/b] [b] Cancel = True[/b] [b] End If[/b] [b] End If[/b] [b]End Sub[/b]
6.Save this and Now close the VB Code editor.
7.In Outlook Go to [b]Tools[/b] > [b]Macros[/b] > [b]Security[/b] > In the [b]Security Level [/b]Tab > Select the option [b]MEDIUM[/b] > OK
8.Now Restart the Outlook, a dialog box pops up to [b]Disable / Enable the macros[/b]; select as [b]Enable[/b] [b]Macros (this option will pops up when ever you restart outlook.[/b]
9.From now on , this macro will make sure you do not make the mistake of sending a mail without subject
That's it!
相关文章推荐
- 如何解决开启瑞星邮件监控,outlook不能发送邮件的问题
- 如何阻止通过Outlook用户发送WORD或EXCEL变成带Winmail.dat文件附件的邮件
- [Outlook] outlook如何实现自动CC和BCC邮件发送
- 在用OUTLOOK(OFFICE)发送邮件时,如何加注"收到后发送回执"!
- SmtpClient发送邮件遭遇The specified string is not in the form required for a subject.
- 如何在Outlook中使用宏发送邮件,并且使用已有签名?
- 如何阻止通过Outlook用户发送带Winmail.dat文件附件的邮件
- 在Outlook中如何修改收到邮件的主题 Editing received messages and subjects
- [原创]在Managed Code通过Google Gmail发送邮件以及如何通过Outlook配置Gmail
- 如何使用outlook发送邮件教程
- 在Managed Code通过Google Gmail发送邮件以及如何通过Outlook配置Gmail
- 如何清除outlook发送邮件后记录的地址
- outlook 发送邮件没有“附件”、“主题”提醒
- 如何在Exchange 2010上防止对方冒名发送邮件
- 在Exchange Server 2003 如何防止用户发送或接收 Internet 邮件
- .NET中如何用Outlook自动发送邮件(C#)
- Exchange 2010 启用匿名 如何防止任意伪造一个邮件地址发送给内部账号!
- java发送邮件没有主题且乱码以及如何exclusion依赖
- OUTLOOK里面如何让同一主题的邮件整合在一起
- SmtpClient发送邮件遭遇The specified string is not in the form required for a subject.