The sendmail
tag sends an email message
using SMTP.
sendmail
tag syntax:
<dtml-sendmail> </dtml-sendmail>
The sendmail
tag is a block tag. It either requires a mailhost
or a smtphost
argument, but not both. The tag block is sent as
an email message. The beginning of the block describes the email
headers. The headers are separated from the body by a blank
line. Alternately the To
, From
and Subject
headers can be
set with tag arguments.
To
header.From
header.Subject
header.Sending an email message using a Mail Host:
<dtml-sendmail mailhost="mailhost"> To: <dtml-var recipient> From: <dtml-var sender> Subject: <dtml-var subject> Dear <dtml-var recipient>, You order number <dtml-var order_number> is ready. Please pick it up at your soonest convenience. </dtml-sendmail>