Sending Emails
Last updated
Was this helpful?
Last updated
Was this helpful?
CFML gives you the cfmail
tag/construct to easily send email in text or HTML format without any ceremony. Just register your mail servers in the administrators or the Application.cfc
and you are ready to start sending emails in a jiffy!
The cfmail
tag/construct has tons of attributes, so check them out in the docs
You can even bind the mail construct with a query, and the engine will send as many emails as rows in the query for you:
You can also send attachments to your email destinations very easily using the mimeattach
attribute or via the child cfmailparam()
construct, which allows you to send multiple attachments, or headers.
More in-depth information can be found here: