Copy link to clipboard
Copied
Hi,
I set email setting with test1@gmail.com in administrator web interface
and I use the following code send email.
<cfmail to="test3@gmail.com"
from="test@abc.com"
subject="Happy New Year"
type="HTML" >
Happy New Year.
</cfmail>
but the sender is "test1@gmail.com" when I receive the email in test3@gmail.com.
I hope the sender is "test@abc.com".
Please help me and give me a hand to fix this.
Thanks
Mark
Copy link to clipboard
Copied
First question on my mind is "Are the email addresses for TO and FROM hard-coded? Or variables?"
If hard-coded, then maybe test3@gmail.com is the default sender for the mail server? Maybe it doesn't recognize test@abc.com.
Just a thought.
^_^
Copy link to clipboard
Copied
It's unclear from your initial post, but are you using gmail as your mail server?
If this is the case, I'm pretty sure - from the last time this issue came up - that you can't specify a FROM address that's different from the one you authenticate to gmail with.
--
Adam