Enabling SendMail on Ubuntu

So I guess you are building an application that requires email to be sent out. Depending on your platform (PHP has the builtin mail() function and perhaps AppEngine’s Sendmail function), you might find yourself needing to use the Unix sendmail function.

To Install SendMail on Ubuntu, just run the command

# sudo apt-get install sendmail

To modify the default configuration:

# sendmailconfig

Now your PHP mail() function and other services that depend on Sendmail should be firing now

Additionally, you might want to tail the log file to monitor sendmail functions.

# tail -f /var/log/maillog

So I hope you have a smoother devlopment experience with mails from your local machine.

placeholder

** ..with love from Oyewale. **

comments powered by Disqus