The $SENDMAIL mask enables a question in questionnaire to send an email by means of the SMTP services of IIS.
Note: It is recommended that set-up for this feature be performed by your IT Administrator
$SENDMAIL TO=… FROM=… CC=… BCC=… IMP=… CT=…
Parameter |
Argument |
TO= |
Destination address of the email |
FROM= |
Sender’s email address |
CC= |
Carbon copy email address |
BCC= |
Hidden carbon copy email address |
IMP= |
Importance. Permitted values are ‘High’, ‘Normal’, ‘Low’. |
CT= |
Content type. If the value ‘HTML’ is used, the email will be considered to be in HTML format, otherwise the email will be considered to be in text format. |
Notes:
The subject of the email is taken from the Message of the question bearing the mask.
The body of the email is taken from the Long Label of the question bearing the mask.
Both the Message and Long Label may contain recalls from other questions thus enabling the construction of variable email addresses or URLs.
$SENDMAIL TO="SUP@CORP.COM" FROM="INTERV@CORP.COM" BCC="SUP_CHIEF@CORP.COM" IMP=HIGH CT=HTML
$SENDMAIL TO=<DEST> FROM="INTERV@CORP.COM" BCC=<PRIV> IMP=HIGH CT=HTML
Comments:
When the server encounters a question with a $SENDMAIL mask, it creates a temporary file in the pickup directory defined in the registry of the webserver:
HKEY_LOCAL_MACHINE\Software\Voxco\Interviewer Web\2.5\MailPickupDir
The SMTP service regularly scans the pickup directory, sending the emails that it finds in there. As with all other executable masks, $SENDMAIL recognizes recalls from other questions in all of its parameter arguments.