0
I am developing a website with contact form. The form is very simple only with name, email, message and subject.
I have the site hosted on a server, but I need the data from form are received in another email, not what is configured in the hosting service.
I tried for the job mail
php and it didn’t work. I tried to use the PHPMailer
and something related to STMP, but I don’t know this area very well, so it didn’t work either.
How can I solve this problem?
The only way is to use authenticated email sending using classes like Phpmailer. With the php mail function it will not be possible. See the following: when sending an email on behalf of another server, when arriving at the destination will be done the reverse DNS, that is, the system will convert the IP of the sender into a domain that will not be the same domain of the email used as sender (@your-domain.com)will soon be considered spam and will not reach the recipient’s mailbox.
– Filipe Moraes
By chance you have the site running on Locaweb?
– user33266
Related: http://answall.com/questions/25600/enviar-e-mail-com-cco-no-php?answertab=votes#tab-top
– KaduAmaral
Hi Felipe, yes, at Locaweb. I got it now, as the same Phpmailer, was setting it wrong.
– Ricardo Afonso