Asked

Email server for local PHP development on macOS

I'm doing lightweight PHP programming using the macOS-integrated PHP server.

I'm currently in the process of coding my own contact form but I'm struggling to find a working way to send test emails from my localhost (macOS).

Ay invent, act, build, travel, write. — Home = naii.io
https://linkedIn.com/in/ryandimascio

Check out MailHog - github.com/mailhog/MailHog

Ay invent, act, build, travel, write. — Home = naii.io

Super! Thanks @Ryan DiMascio with the help of this article (www.joshstauffer.com/send-tes…) I got it running.

Ay invent, act, build, travel, write. — Home = naii.io

I didn't understand how to actually send an email with MailHog so I abandoned it. Now, I'm trying out PHPMailer github.com/PHPMailer/PHPMaile…. I'm required (in general) to enter my SMTP login (username, password) which makes me feel uncomfortable. Is there a secure way to store the SMTP login credentials on the live server?

Will ship code for coffee

I usually use mailtrap to test email sending.

Full-stack PHP dev, JavaScript enthusiest, and pepper grower

+1 for mailtrap. If you're using Laravel, it's insanely easy to integrate.