Today, I had to run some tests using the wp_mail() function in Varying Vagrant Vagrants and found that no email was being sent out. I love VVV and how easy it is to setup a develop environment locally, but when it comes to the nitty gritty of server configurations, things get kind of blurry. Fortunately, I came across some instructions on how to make your Ubuntu server utilize Gmail’s SMTP server for outgoing mail.

With a quick SSH into the vagrant (vagrant ssh), I was able to copy and paste all instructions and in a matter of minutes, my inbox began to get flooded with messages of my previous sending attempts.

Hope this helps someone with the same problem.