• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Coldfusion and sending mail

T

tibor749

Guest
We are having an issue with our new plesk install. When we send email using coldfusion we can login to the domains mail server, we can send to other mail accounts on the domain but not to external email addresses. The mail servers are setup for login to relay over smtp. Anyone have any ideas?
 
Check the MAIL option on CF administrator, i think that you need specify a validate mail user.
 
If you do not setup a defualt mail server in the CF admin, then you need to use the cfmail tags full params to authenticate, there is also one big difference between Linux and Windows with the cfmail tag.

Linux cfmial tag allows you to specify a short mail username IE: username ="joe" where windows cfmail tag you must use the full mail name as the username, IE: username = "[email protected]".
 
It is obviously more preferrable to have your users setup an email address for themselves and then authenticate with the SMTP server by using the username and passwords from thier email addresses that they setup in PLESK for that domain. They then use mail.thier-domain.com for the mail server attribute in the cfmail tag.

Like so:
Setup an email address like [email protected] in plesk for the domain.

<cfmail
from = "[email protected]"
to = "[email protected]"
subject = "Your Subject"
server = "mail.your-domain.com"
username = "sitemail"
password = "sitemails_password"
port="25"
>

Now you can track problems using the cfmail log found in the cfadmin becuase you can now tell which domain is sending particular emails in case of an issue or abuse.
 
Back
Top