1
votes

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.

4
not really understanding what your doing. could provide the arguments that your passing to your cfmail tag? - rip747
Gene, it would be best if you edited that code sample into your question. - Adam Tuttle
You might want to edit your GMail password out of the code in the comment you posted... - Justin Scott

4 Answers

2
votes

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

1
votes

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.

0
votes

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.

0
votes

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.