[SendMail Parameters]Body[/SendMail]
To send an email, put a SendMail context into a template with the body of the email message inside the context. Specify "to", "subject", and "from" information in parameters of the SendMail context. WebCatalog does not actually send the email; it writes a special file into an EmailFolder which the separate Emailer program uses to send the email. If the Emailer program is not running, no emails will be sent. The Emailer program will not erase old outgoing email files until it has successfully completed sending the email.
Example (normally you would put the following text into a .tpl file on your server and use a web browser to link to it):
Try It!
Any [xxx] values are first substituted for their real values (both in the parameters as well as the body of the message), then the email file is written into the EmailFolder, where the Emailer program checks for new files every few seconds and sends them out.
Parameters for the SendMail context:
Parameter | Description |
---|---|
to |
recipient(s) of this email, as in "address@domain.com,address2@domain2.com" |
from |
return address, as in "youraddress@yourdomain.com" |
subject |
subject line for email |
anything |
(2.1) You may specify any extra MIME header information by simply naming it and providing a value in the list of SendMail parameters. For example, if you want to force the date of the email to something other than the default, add "Date=Mon, 05 Jan 1998 15:59:33 -0500" to the list of parameters. |