Skip to main content
Known Participant
January 4, 2011
Question

Question for cfmail ?

  • January 4, 2011
  • 2 replies
  • 415 views

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

    This topic has been closed for replies.

    2 replies

    Inspiring
    January 4, 2011

    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

    WolfShade
    Legend
    January 4, 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.

    ^_^