A. B
A. B

Reputation: 717

How to test for sending emails in python?

I'm writing a set of black box tests for my application. I'm using smtplib for sending the emails, and I want to test whether emails are being sent/received properly.

Any ideas on how to do that in python?

Upvotes: 2

Views: 6403

Answers (2)

dina
dina

Reputation: 4289

you can use mailhog,

you can run it locally using the docker image

Upvotes: 0

Atilla Ozgur
Atilla Ozgur

Reputation: 14701

Use one of the following to test that your emails are sent.

Upvotes: 2

Related Questions