Article ID: 317327 - Last Review: November 30, 2007 - Revision: 8.7 How to add a disclaimer to outgoing SMTP messages in Visual BasicThis article was previously published under Q317327
For a Microsoft Visual Basic Scripting Edition version of this article, see 317680
(http://support.microsoft.com/kb/317680/
)
.
On This PageINTRODUCTIONThis step-by-step article describes how to use an SMTP
transport event sink to add a disclaimer to outgoing SMTP e-mail
messages. Create the event sink
Register the event sinkTo register the event sink, use the Smtpreg.vbs file that is installed with the Exchange software development kit (SDK).
http://msdn2.microsoft.com/en-us/library/ms526620.aspx
(http://msdn2.microsoft.com/en-us/library/ms526620.aspx)
Test the event sinkTo test the event sink, send an e-mail message to an SMTP recipient who is external to your organization. The recipient receives a modified message with the disclaimer text added to the end of the message.Note If you use a MAPI client, such as Microsoft Outlook, to send the e-mail message, the recipient does not receive a modified e-mail message. This is because the e-mail message that is submitted by using MAPI is not in an SMTP format when the e-mail message triggers the SMTP transport event. Therefore, changes that are made by the code of the event are not persisted. REFERENCES
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
273233
(http://support.microsoft.com/kb/273233/
)
Cannot change MAPI message contents in a CDO SMTP event sink
APPLIES TO
| Article Translations
|

Back to the top
