Reputation: 2287
Here is my server set up:
Keeping it simple for this question, I have two web sites (this is just theory; using private IPs in example).
I'm sending mail using the cfmail tag from Site 1 (10.10.10.1), but when I look at the mail headers of the sent emails and the SMTP log on the mail server, it says that the mail was sent from Site 2 (10.10.10.2).
I did some google searches regarding this issue and came up with this bugbase report. The bug doesn't appear to have been fixed. However, I was wondering if there were any work-arounds. I want the mail that is sent from "Site 1" to have that sites IP address in the email header.
Upvotes: 1
Views: 852
Reputation: 6132
Have you tried specifing the mailserver similar to the below?
<cfmail
to="<<<email>>>"
from="<<<fromEmail>>>"
subject="Some Subject"
type="html"
server="server to send from (ip)"
port="port for mail server">
body=" <<<content here>>>"
By default Coldfusion will use the email server configured in the admin console. By defining mail servers in the cfmail tag this should be overwritten.
Upvotes: 0