Web Development

CFMAIL Changes


We are seeing an increasing amount of spam being sent by Coldfusion scripts which is due to us not enforcing SMTP Auth in CF – this has to change or our servers will get continually blacklisted. This is a very simple change though!

To enable SMTP Authentication you need to :

1. Create a valid email on your domain. But for domains that have a different MX server you will need to connect to that MX mail server).
2. Change the CF code in the CFMAIL tag to include the username and password of the valid mailbox as outlined here:

Abobe CF MAIL Documentation

Simple example :

< cfmail subject = "Contact" from = "test@localdomain.com" to = "test1@remotedomain.com" server = "localhost" username = "test@localdomain.com" password = "mailboxpassword" >

We will start enforcing CF to authenticate against a valid mailbox from Monday 13th February so please make sure you have fixed your code by then. If you make alterations and find you are having issues with sending mail please let Technical Support know and we’ll look at your code and assist.

Many thanks.

HN Support

About the author

Laurence Flynn

Laurence Flynn

Hey! I'm Laurence, hosting industry veteran and entrepreneur, obsessed with web performance. My aim is to build the cheapest and fastest Optimized WordPress Hosting platform available today. Our back-end systems include Nginx and Redis combined with PHP 7, FPM and MariaDB to deliver maximum performance. Our front-end UI is powered by the beautiful Plesk control panel to deliver a smooth user experience. All secured with Imunify360, artificial intelligence and machine learning. Connect with me on LinkedIn.

Add Comment

Click here to post a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.