Receive emails via php off the server

Asked

Viewed 509 times

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.

  • By chance you have the site running on Locaweb?

  • Related: http://answall.com/questions/25600/enviar-e-mail-com-cco-no-php?answertab=votes#tab-top

  • Hi Felipe, yes, at Locaweb. I got it now, as the same Phpmailer, was setting it wrong.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.