Reputation: 3506
I'm trying to send a message from localhost:1025
. I'm running an SMTP debug server using this command python -m smtpd -n localhost:1025
.
Here is the code used for sending the mail:
msg = mailer.Message(From='noreply@'+company['host'],
To=req['mail'],
Subject='E-mail confirmation',
Body=Template(open('./confirmation.html').read()).render(company=company, account=account, accode=accode))
mailer.Mailer(company['host'], port=1025).send(msg)
The req['mail']
contains my email address, when I checked my email inbox and spam folders, I didn't find any message - What's, supposedly, caused this problem?
Upvotes: 0
Views: 12171
Reputation: 37113
As is made quite clear in the documentation the debugging server does not attempt to deliver email messages. This is to allow testing and verification of the email's content without actually sending any mail.
Upvotes: 4