You can use Coldfusion to easily send mail. From simple plain text emails to more complex HTML and multipart emails, the job is made a lot easier with Coldfusion.
In the following collection of articles, we will cover the basics and gradually move onto more useful examples including using a query to send mail to multiple recipients.
The <cfmail> tag
If you want to send email in Coldfusion, the cfmail tag is your friend.
Assuming everything is set up, the tag is very easy to use. Some of the more common attributes are given below:
Expand|Select|Wrap|Line Numbers
- <cfmail
- to="recipient"
- from="sender"
- subject="msg_subject"
- cc="copy_to"
- bcc="blind_copy_to">
Expand|Select|Wrap|Line Numbers
- <cfmail
- to="someone@example.com"
- from="me@company.com"
- subject="Test Email">
- This is a test email.
- </cfmail>