views:

1269

answers:

4

I am using a shared Coldfusion host (Crystaltech) but am using google domain mail for my email needs. When I use CFMAIL to send mail from this server, I tried using gmail's smtp. It however rewrites any from address I specify to the gmail account I'm using for smtp.

I've heard others talk of using Yahoo. Anybody have any good solutions for this?

Thanks in advance.

A: 

This is by design. What you want to do is continue to use Gmail, but set the Reply-To field to the address you want responses to come back to. Many email clients will actually show the Reply-To value as "From" in the UI.

Chase Seibert
I tried that also, from what I can find, Gmail also re-writes the reply-to field with the gmail account. Any other ideas? Or am I doing something wrong?
Gene R
A: 

Assuming CT is providing an SMTP server you aren't using, I'd make sure I had an SPF record that allowed Crystaltech's SMTP server to send for my domain, then just use the provided mailserver.

Ben Doom
In order to do that, they want me to put an email in their mail admin for every "from" I want to use. This won't work, i.e. some forms use the users email input from the form as the "from"
Gene R
You shouldn't send mail "from" accounts you do not have control of the domain from. You should send it from a system account, and use the reply-to header (or similar).
Ben Doom
+1  A: 

After searching around, it is my conclusion that Chase is correct in saying that this is by design and cannot be circumvented. Granted what I found was from 2005, but I can't find anything later saying that this can be done. References below.

http://www.mobileread.com/forums/showthread.php?threadid=4857

http://lifehacker.com/software/email-apps/how-to-use-gmail-as-your-smtp-server-111166.php

rip747
A: 

The way I'm understanding your issue is that you'd like the "from" to be dynamic, based on an account you specify for each message vs. the master account that you're using as the sender mailservice. In order to accomplish this, you need to establish any other "from" account you plan to use within your application as an alternate address within Google Mail.

You will find the option to establish these linked accounts in Google Mail's Settings --> Accounts interface. There, you can add however many additional accounts you need, sending each an email to verify your ownership. Once you have verified, then you should be able to use any of those accounts as an authorized sender, via your master account.

Heather