Send Mail Using Amazon EC2 Instance

sourabh kasliwal picture sourabh kasliwal · Nov 8, 2013 · Viewed 42k times · Source

I am using Amazon EC2 Instance for one of my project, I have installed LAMP on linux server and now while I am trying to send email using simple function it is not sending email also is not giving any error for that.

Things I have done so far.

  • Created SES account.
  • Used simple mail function.
  • Enabled port 25 in security groups.

Answer

PabloQ picture PabloQ · Jul 16, 2014

I solved this issue just by installing sendmail in my instance. Just run bellow command in your terminal

sudo apt-get install sendmail

That worked for me