Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Question for cfmail ?

New Here ,
Jan 04, 2011 Jan 04, 2011

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

394
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 04, 2011 Jan 04, 2011

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.

^_^

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 04, 2011 Jan 04, 2011
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources