+ 2

how can i send a mail using python..?

29th Sep 2017, 2:43 PM
Meet Khatri
Meet Khatri - avatar
4 Answers
+ 1
i tried..but not working.. anyone send me code..
29th Sep 2017, 3:27 PM
Meet Khatri
Meet Khatri - avatar
+ 2
import smtplib
29th Sep 2017, 3:00 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
There are modules for that. To know more read chapter 19 of the python3 documentation
29th Sep 2017, 3:11 PM
👑 Prometheus 🇾🇬
👑 Prometheus 🇾🇬 - avatar
+ 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.
29th Sep 2017, 6:02 PM
Kirk Schafer
Kirk Schafer - avatar