Email to be sent out from a dedicated server with different IP

Posted by ToughPal on Stack Overflow See other posts from Stack Overflow or by ToughPal
Published on 2010-04-20T08:09:09Z Indexed on 2010/04/20 8:13 UTC
Read the original article Hit count: 364

Filed under:
|
|
|
|

We have three domains hosted on one dedicated server each with its own dedicated IP.

Domain A - Has the server primary IP address (default server IP)
Domain B - Has its own IP address
Domain C - has its own IP address

If an email goes out from Domain B then it uses the Domain A IP address in outgoing and this makes emails from Domain B using PHP go straight to spam box of Gmail etc.

Is there any way to change the source IP depending on where the email originates from in PHP? What should we change to fix this?

© Stack Overflow or respective owner

Related posts about php

Related posts about email