AWS Bitnami Can’t Send Emails phps mail() function

Problem

I’m using AWS bitnami stack and now im getting an error where bitnami can’t send emails phps mail() function. Not ideal as I need to send emails from my contact form.

Solution

Install the sendmail function using this command:
sudo apt-get install sendmail

Restart the server using this command:
sudo /opt/bitnami/ctlscript.sh restart apache

OR

Setup external send mail using gmail or such:
https://wiki.bitnami.com/Components/PHP#How_to_send_email_via_external_SMTP_account

Sam Deering is a web developer from England (currently living in Australia). In his spare time he enjoys coding, playing chess, reading and investing.

Leave a Reply

Your email address will not be published. Required fields are marked *