Hi,
I am working out a program which involves emailing through a SMTP host I dont have control over... I can mail through PHP code but cant do so through python, because I get the following error
Traceback (most recent call last):
File "Teshting.py", line 7, in <module>
smtp.sendmail('Sender','thenameizprayag@gmail.com','Test')
File "/usr/lib/python2.6/smtplib.py", line 709, in sendmail
raise SMTPRecipientsRefused(senderrs)
smtplib.SMTPRecipientsRefused: {'thenameizprayag@gmail.com': (554, '<thenameizprayag@gmail.com>: Relay access denied')}
My code is simple for now...
import smtplib
smtp = smtplib.SMTP()
smtp.connect(' MY SMTP HOST ')
smtp.sendmail('Sender','thenameizprayag@gmail.com','Test')
print "Mail sent successfully"
I would be grateful for a quick solution... I have tried a lot on the internet to no avail...