Unable to send mail using vagrant and fpm to mailcatcher

2020-04-10 09:21 | Readtime: 15sec

I was using generated vagrant and puppet scripts from https://puphpet.com/ and unfortunately encountered with a problem. Php mail function was returning false.

The solution would be to provide fifth parameter in mail method:


mail('caffeinated@example.com', 'My Subject', $message, null,'webmaster@example.com');

Share

Comments

Log in and participate in the comments

15075155991

A businessman who loves to write can't have a bad business.

Follow

Zediersheng

Log in with a captcha | Forget your password?
No account?Free join

Zediersheng

Registration means consent User Agreement and Privacy Policy
I have an account?Sign in

Zediersheng

Sign in
No account?Free join

Zediersheng

Login by password
No account?Free join