Script Example - CDO for ColdFusion

This will allow CFmail to be sent through CDO.

<CFOBJECT ACTION="Create" TYPE="COM" CLASS=CDO.Message NAME="Mail">
<CFSET Mail.To="user@domain.com">
<CFSET Mail.From="user@domain.com">
<CFSET Mail.Subject="subject of email" >
<CFSET ThisMessage="Email message" >
<CFSET Mail.HTMLBody="body of the email">
<CFSET temp=Mail.Send()>

Note that this is a basic script that is for example only.

Add Feedback