HostOnNet Blog

SMTP Server for local Development

When you develop websites or application on local computer, you don’t need mail server installed on your local PC to sent emails. You can run

python -m smtpd -n -c DebuggingServer localhost:2525

This will start a Debugging SMTP server on port 2525 of your PC.

Now set your application to sent email using SMTP server running at localhost port 2525.

On terminal, you will see content of all mails sent.


Posted in Python