+ 2
how can i send a mail using python..?
4 Réponses
+ 1
i tried..but not working.. anyone send me code..
+ 2
import smtplib
+ 1
There are modules for that.
To know more read chapter 19 of the python3 documentation
+ 1
@$Vengat pointed you towards the "email" module, which has examples:
https://docs.python.org/3/library/email.html
It's a nice answer when all you really want is something to copy and change.
If this isn't working, you should show the code/what you've tried on CodePlayground. Otherwise the number of paths grows very quickly because we have to identify *specific* details that are blocking you (like how to find an MX record or what the server says on EHLO)...and it's probably better to use the details that apply to you vs. a huge general case.