Send email via mail server


/ Published in: ColdFusion
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <cfset mailto="[email protected]">
  2. <cfset mailfrom="[email protected]">
  3. <cfset subject="This is a test">
  4. <cfset server="mail.server.com">
  5.  
  6. <cfmail to="#mailto#" from="#mailfrom#" subject="#subject#">
  7. Here goes the body of the message
  8. </cfmail>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.