tracker issue : CF-4204467

select a category, or use search below
(searches all categories and all time range)
Title:

this.smtpServerSettings missing options

| View in Tracker

Status/Resolution/Reason: To Fix//BugVerified

Reporter/Name(from Bugbase): Wil G. / ()

Created: 05/30/2019

Components: General Server

Versions: 2018

Failure Type: Non Functioning

Found In Build/Fixed In Build: All builds of ColdFusion from CF11 and newer /

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Platforms All

Vote Count: 1

Problem Description:
We're trying to use this.smtpServerSettings to set up email to a different server than the default settings in CFAdmin.  Mail servers regularly require TLS on a different port than port 25. The this.smtpServerSettings does not pass along the TLS and PORT number.  

this.smtpServerSettings = {server = "mail.example.com",username="user@example.com",password="PA$$w0rd",usetls="true",port='587'};

The email that is generated is thus missing information and the emails are note sent.

Actual Result:  Note that the port is set to 25 and there is no usetls: true flag.
type:  text/plain; charset=UTF-8
server:  mail.example.com:25
server-username:  user@example.com
server-password:  UEEkJHcwcmQ=
from:  user@example.com
to:  user2@example.com
subject:  Sample e-mail from ColdFusion
X-Mailer:  ColdFusion 2018 Application Server
body:   
body:   
body:  This is a sample e-mail message to show basic e-mail capability. 
body:   

Expected Result: This was generated via CFMAIL 
<cfmail from="user@example.com" to="user2@example.com" subject="Sample e-mail from ColdFusion" username="user@example.com" password="PA$$w0rd" server="mail.example.com" port="587" usetls="true" > 

Note the  port number is set in both the server: and port: settings. Note the usetls: flag is set to true. 
 
type:  text/plain; charset=UTF-8
server:  mail.example.com:587
server-username:  user@example.com
server-password:  UEEkJHcwcmQ=
usetls:  true
port:  587
from:  user@example.com
to:  user2@example.com
subject:  Sample e-mail from ColdFusion
X-Mailer:  ColdFusion 11 Application Server
body:   
body:   
body:  This is a sample e-mail message to show basic e-mail capability. 
body:   


Any Workarounds: NONE

Attachments:

Comments: