PHP mail function send mails only to Zoho

Posted August 26, 2016 4.4k views
EmailUbuntu 16.04

Hi everybody.
I have two sites in my droplet that have MX records for zoho mail and have configured postfix according to this video : [](http://) . 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 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.

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.

Submit an Answer
1 answer

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