Tip

Append text to SMTP e-mails in Exchange Server 5.5

Within any organization, an Exchange administrator may wish to have a header or footer attached to all incoming or outgoing messages, such as a disclaimer or other legal notice. Doing this requires use of the Internet Mail Service Extension DLL, known as IMSEXT.DLL.

This .DLL is included with the Microsoft BackOffice Resource Kit and is not installed by default, so it needs to be installed before it can be used.

  1. Copy the IMSEXT.DLL file to the ExchsrvrConnectMsexcimcBin folder on the Exchange server in question.

  2. In that folder, run the command

    REGSVR32 IMSEXT.DLL

    This will register the DLL with Windows.

  3. If you are running Exchange Server 5.5 SP1 or later, you'll need to make a Registry edit to avoid losing routing tables. Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchange\IMCParameters, add the following value:

    Value Name: NonRoutingExtensionDll
    Data Type: REG_SZ
    String Value: Drive and path to IMSEXT.DLL

  4. Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchange\IMCParameters, add a new key named Extension.

  5. Stop and restart the Internet Mail Service.

  6. In the Extension key, add the following values based on what kind of messages you want to add to incoming or outgoing mails.

    To have incoming mail sport a header text in the body of the message, add a string value named InboundPrepend

    Requires Free Membership to View

  1. . For appended text, add a string value named InboundAppend.

    To add a header to outbound messages, add a string named OutboundPrepend. To append text, add a string named OutboundAppend.

    The value of each of these strings is the text of the message to add, with the following RTF-style control characters:

    \b -- Bold on
    \b0 -- Bold off
    \i -- Italics on
    \i0 -- Italics off
    \ul -- Underline on
    \ul0 -- Underline off
    \plain -- Plaintext--All formatting off
    \par -- New line or new paragraph
    \tab -- Tab in five spaces

So to encode the message

This mail has been sent in confidence.
If you are not the recipient, contact outbox@domain.com immediately.

-- use the following text:

This mail has been sent in confidence.par If you are not the recipient, contact outbox@domain.com immediately.

Note the use of par for the line break.


Serdar Yegulalp is the editor of the Windows 2000 Power Users Newsletter.


This was first published in August 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.