Sending Emails
cfmail(
subject="Your Order",
from="[email protected]",
to="[email protected],[email protected]",
bcc="[email protected]"
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="[email protected]",
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?
