137

How to create an Auto Reponse Script

This article describes how to create an auto response script for use in MDaemon.

Auto Response scripts define the messages that are returned as the result of an auto-response event. They are constructed the same as MBF files and can contain the same macros. However, several additional macros are provided which allow you to develop more powerful auto-response messages.

To create a Auto Response Script:

  1. Open Notepad.
  2. Type a greeting.
  3. Example: ( Greetings $SENDER$ ).
  4. Type a Message.
    Example:  Thanks for contacting me $SENDER$ about $SUBJECT$, sorry I will not be available to reply until 12/31/2005.
    Yours truly.
    $RECIPIENT$.
  5. Type a Subject line.
    %SUBJECT%=RE: $SUBJECT$.
  6. Save file as name.rsp, this file needs to be saved in your MDaemon\App directory.

In addition to those template variables defined for MBF files, auto-response scripts can use any or all of the following macros, which override the values parsed from the original message:

%SetSender%        

ex: %SetSender%=mailbox@host.org

MDaemon will treat this address as if it had sent the original message.

%SetRecipient%     

ex: %SetRecipient%=mailbox@host.org

Sets the address that will receive the auto-response message, regardless of the original sender.

%SetReplyTo%

ex: %SetReplyTo%=mailbox@host.org

Controls the value of the RFC-822 ReplyTo header     

%SetActualTo%      

ex: %SetActualTo%=mailbox@host.org

Changes who is the  “actual” recipient of the mail message.

%SetSubject%

ex: %SetSubject%=Subject Text

Replaces the value of the message’s subject. 

%SetMessageId%

ex: %SetMessageId%=ID String

Changes the ID string of the message.

%SetPartBoundary%

ex: %SetPartBoundary%=Boundary String

Changes the part boundary.

%SetContentType%

ex: %SetContentType%=MIME type

Changes the content-type of the message.

%SetAttachment%

ex: %SetAttachment%=filespec

Forces MDaemon to attach the specified file to the newly generated auto-response message.