Sending Emails
cfmail(
subject="Your Order",
from="myshop@ortus.com",
to="whatever@gmail.com,another@gmail.com",
bcc="orders@ortus.com"
type="HTML"
){
// body of the email.
writeOutput( 'Hi there,' );
writeOutput( 'This mail is sent to confirm that we have received your order.' );
};Query Binding
var qData = userService.getNewUsers();
cfmail(
subject="Welcome to FORGEBOX!",
from="myshop@ortus.com",
to="#qData.email#",
query=qData
){
writeOutput( "
Dear #qData.name#,
Welcome to your FORGEBOX account! Play and just do it!
")
};Sending Attachments
Last updated
Was this helpful?
