Customizing Email MessagesSome of the frequently asked questions on customization of the e-mail message in the sendmail function, are listed below:
How can I insert line breaks to my e-mail message A message could be sent as "Plain Text" or "HTML". Use <br> tag if the content is HTML and \n if the content type is "plain text". For example,
How can I send e-mail message with form data? To send e-mail message with form data, use the input.formdata variable in On Add -> On Success or On Edit -> On Success script. A sample code for the same is given below:
Refer FAQ - Form Builder, to configure the above from the GUI. How can I send only specific field values in the e-mail message To send only specific field values in your e-mail, use the input.<field_name> variable in On Add -> On Success script. For example, you have 3 fields (Name, Age, Email), and in the email message you want to send only the Name and E-mail field values. The format for the same will be,
Refer FAQ - Form Builder, to configure the above from the GUI. How can I
send a URL in my e-mail message To send a link/url in your e-mail message, the actual link must be specified within the <a href> html tag and the actual link must be within single quotes, as shown in the sample below:
How can I send the url of the uploaded file, in my e-mail message Get the url/link of the uploaded file by specifying the url within the <a href> tag, in the following format. For example, in the sample message given below, File_Upload_1 is the name of the file upload field and the actual link is specified within single quotes.
To populate a field value in Form B by sending e-mail, you have to pass the field value with the form url. For example, assume you have a e-mail field named clientEmail in your current form, and you want to send mail to this e-mail with the url of Form B and populated in with the To address of your e-mail. To do this, you have to specify the form url with the field name and the value to be populated, within the <a href> tag, as given below:
In the above message, - http://creator.zoho.com/sampleapps/form/355/ is the link to
the form, with owner name sampleapps
and 355 as the formnumber. Selecting the link in the email message will display Form B with the Email_1 field updated with the input.clientEmail value.
How can I send the url to view the current
record The current record can be fetched by specifying the view link within the <a href> tag, as shown in the format given below. The input.ID will display the current record in the view.
How can I send mail with all the values selected in the multi-list field of my form? Refer the topic Tips & Tricks -> Iterating Data in Radio buttons/check-boxes.
Zoho Creator currently does not support attachment in e-mail messages. As a workaround, you can use our Zoho Viewer to upload your document and send the document link in your e-mail message.
|