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.
  5. Type a Subject line.
  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:


ex: %SetSender%=mailbox@host.org

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


ex: %SetRecipient%=mailbox@host.org

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


ex: %SetReplyTo%=mailbox@host.org

Controls the value of the RFC-822 ReplyTo header     


ex: %SetActualTo%=mailbox@host.org

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


ex: %SetSubject%=Subject Text

Replaces the value of the message’s subject. 


ex: %SetMessageId%=ID String

Changes the ID string of the message.


ex: %SetPartBoundary%=Boundary String

Changes the part boundary.


ex: %SetContentType%=MIME type

Changes the content-type of the message.


ex: %SetAttachment%=filespec

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