All Collections
ColdFusion
Relaying Mail with ColdFusion
Relaying Mail with ColdFusion
Updated over a week ago

ColdFusion Mail

ColdFusion has the ability to deliver email messages locally or externally from a mail server. The tag to accomplish this is  which is easy to utilize and implement within your web applications.

SmarterMail SMTP Authentication for VPS'

For security reasons, it is the best practice to use SMTP Authentication for all scripts, either with SmarterMail on the VPS or an External SMTP Server, this is to prevent unauthorized emails being sent from the VPS. If SMTP Authentication Bypass is needed, and cannot be avoided, the Bypass can be set up through the security settings in SmarterMail.

Using CFMAIL with External SMTP (shared and VPS)

This second method will allow you to send through an external SMTP server such as mail.example.com. It requires specifying the server, port, useSSL, username, and password attributes as shown below:

<cfmail
  server="mail.example.com"
  port="587"
  useSSL="false"
  username="[email protected]"
  password="mySecretPassword!"
  from="#from#"
  to="#to#"
  subject="Sample CF e-mail">

This is the body of a test email.

</cfmail>

If you’re having trouble utilizing <cfmail> in your application please feel free to contact (link) our support team and we’ll be happy to help.


 

Did this answer your question?