HostOnNet Blog

SMTP Server for local Development

Looking for Linux Server Admin or WordPress Expert? We can help.

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.