How do i put CFMAIL Tag to work?

In order to send mails successfully through CFMAIL tag you have to make sure that the CFMAIL construct looks like following:

<CFMAIL FROM="user@mydomain.com"
TO="user@otherdomain.com"
SUBJECT="My Subject"
SERVER="mail.server"
USERNAME="user@mydomain.com"
PASSWORD="mypassword">

Email goes here...

</cfmail>

In the above construct you should replace mydomain.com with your domain name, and user@mydomain.com with the email user that you have created in Control Panel. Please do note that you must use mail server authenticaiton in your scripts else mails will not be sent.

 

  • 7 Users Found This Useful
Was this answer helpful?

Related Articles

How can we enable support for UTF-8 chatset support for CF DSN?

If you wish us to enable UTF-8 Charset support for your ColdFusion DSN, please raise a support...

ColdFusion Security - Global Sandbox - Restricted Tags/Functions

In the Global Sandbox the following TAGS/FUNCTIONS are...

How can enable/disable ColdFusion?

You can enable/disable ColdFusion extension using HELM > Domains > Click on the domain...