Unable to send mail using vagrant and fpm to mailcatcher

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');