PHP mail function send mails only to Zoho

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


Submit an 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.