Report this

What is the reason for this report?

PHP mail function send mails only to Zoho

Posted on August 26, 2016

Hi everybody. I have two sites in my droplet that have MX records for zoho mail and have configured postfix according to this video : https://www.youtube.com/watch?v=7IyXS2wWzwM&list=LL6dywe4eDt-ri9Mn78gum6g&index=2 . PHP function mail work nice and they send emails to my zoho account.

When though I change mail($to, $subject, $message, $headers); the $to variable to let’s say myemail@yahoo.gr nothing happens.Probably something has to do with MX records.

Since I have clients that have their own emails I want with a simple PHP form from their site to be able to receive emails to their yahoo gmail or anything else.

Should I install PHP mailer or do something different to postfix?The email services like zoho,gmail etc will do everything I m not going to make my droplet an email server.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I think I made it working.Just added the yahoo MX record and a mail A record for domain.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.