To send respondents an email from a survey, use the send email
widget.
EMAIL. Please enter your email address so we can enter you in our drawing to win a free iPad.
type: text
datatype: email
decline to answer: 99. Not interested
NAME. To whom should we address the email?
type: text
show if: noneChecked($QEMAIL,99)
send email
to: $QEMAIL
from: customersurvey@intellisurvey.com
subject: Thank You
text: <<ENDMSG
Thank you, $QNAME, for completing our survey.
Your opinions are important to us. To show our appreciation, we have entered your name in a drawing for a <b>free iPad</b>.
You will be notified by email if you are our lucky winner this month.
ENDMSG
condition: noneChecked($QEMAIL,99)
Details
- The
send email
widget requires four tags —to
,from
,subject
, andtext
. - The
text
tag allows for the optional usage of heredoc to create multi-paragraph email text as shown above. - Attachments such as images, HTML files, or PDFs can be included with the
attach
tag (e.g.,attach: logo.jpg
). All attachment files, including images, must be stored in the Files applet's _s directory. -
HTML-formatted messages can be sent by using the
html
tag instead of thetext
tag.
Commonly used tags
The following tags can be included with the send email
widget.
Tag | Description |
always |
Specifies whether an email message is sent every time a respondent views a page that triggers the message's send command. |
attach |
Specifies the name of the file to attach. |
bcc |
Specifies an email address, or a comma-separated list of email addresses, that should receive a blind copy (bcc). |
bcc name |
Specifies a name to insert in place of the blind copy (bcc) email address. |
cc |
Specifies an email address, or a comma-separated list of email addresses, that should receive a copy (cc) of the email. |
cc name |
Specifies a name to insert in place of the copy (cc) address. |
charset |
Sets the text encoding system to be used in the message. If not specified, the same encoding system as the survey is used. |
condition |
Specifies logic that must be true to send the email. |
from |
Required; specifies the source (From) email address, or a comma-separated list of email addresses. |
from name |
Specifies a name to insert instead of the source (From) email address. |
html |
Use in place of the text tag to send an HTML version of the email. |
html file |
Specifies the HTML file name to use for the email message. The file must be stored in the _s directory. |
language |
Specifies the language the email was written in. |
onload |
Specifies that an email should be sent when a survey page is loaded instead of when the page is submitted. |
plaintext |
Specifies that the email message should be sent as plain text only. Accepts 'y' input. |
subject |
Required; specifies the email's subject. |
text |
Required; specifies the email message. |
text file |
Specifies the ASCII text file name to use for the email message. The file must be stored in the _s directory. |
to |
Required; specifies the target (To) email address, or a comma-separated list of email addresses. |
to name |
Specifies a descriptive name to insert instead of the target (To) address. |
Additional examples
Sending an email with HTML
If your email requires HTML formatting, substitute the html
tag for the text
tag. Heredoc should be included for multiline/multi-paragraph messages as shown below. Enter your email to see the results of the HTML formatting in the message.
The attach
tag has been included to attach a PDF of a short survey on music preferences.
Comments
0 comments
Please sign in to leave a comment.