Skip to main content
Known Participant
December 16, 2012
Question

Cfmail cf10 - "from" and "Username" must be the same?

  • December 16, 2012
  • 2 replies
  • 752 views

Hi,

i am want to send from error@domain.com to the debugging team debug@domain.com using this simple code

<cfmail to="debug@domain.com" from="error@domain.com"

subject="sending error message plz respond!" username="sender@domain.com"

password="password-correct" server="mail.domain.com" type="html">

          bla bla bla bla blga    

</cfmail> 

the issue is that if the from is not an existed email account i get a verification error on mail log of coldfusion althouth the username is correct...  This used to work in cf8, did they now changed it?

This topic has been closed for replies.

2 replies

Known Participant
December 16, 2012

It also may be that your mail server (gmail for example) inforces that the from field and the account name match (to prevent spam for example).

BKBK
Community Expert
Community Expert
December 16, 2012

That cannot be. The cfmail documentation will tell you that ColdFusion may even accept an arbitrary string as value of the from attribute. Something must have gone wrong somewhere else along the line. Perhaps a space in the e-mail address or an error at your mail server.