Hello people!
I have a little problem here sending an email using python, I have never worked with smtp, not my field at all, I know i need to setup a listener or something on my computer in order to be able to send an email, now i know this code should be able to send the email
import smtplib
s = smtplib.SMTP('l ocalhost')
s.sendmail('fal seemail@nothing .com', 'recipient@host .com, 'hi there!')
s.quit()
but i get this error message
AttributeError: 'module' object has no attribute '__path__'
I think it's something to do with the smtp setup on my own machine, could anyone help me please?
Thanks a bunch
I have a little problem here sending an email using python, I have never worked with smtp, not my field at all, I know i need to setup a listener or something on my computer in order to be able to send an email, now i know this code should be able to send the email
import smtplib
s = smtplib.SMTP('l ocalhost')
s.sendmail('fal seemail@nothing .com', 'recipient@host .com, 'hi there!')
s.quit()
but i get this error message
AttributeError: 'module' object has no attribute '__path__'
I think it's something to do with the smtp setup on my own machine, could anyone help me please?
Thanks a bunch
Comment