About twisted.mail.smtp.SMTPDeliveryError

gganesh ganesh.gbg at gmail.com
Fri May 8 06:51:36 CEST 2009


hi group,
I wrote a code as below


from twisted.mail.smtp import sendmail
from twisted.internet import reactor
from twisted.python.log import err
import time

MAILSERVER = 'mail.xxx.com'
listTo = ['gxxxxxx at gmail.com', 'gjangoxxxxx.py at gmail.com',
'lxxxxt at yahoo.co.in', 'gk1xx at gmail.com']
FROM = 'ganeshxx at .....com'
MSGBODY = "hi this final test"
a= time.time()
done = sendmail(MAILSERVER, FROM, listTo,
MSGBODY ,senderDomainName=None, port=25)
done.addErrback(err)
done.addCallback(lambda ignored: reactor.stop())
reactor.run()
print "Took %s seconds" %str(time.time()-a)



it showed me a error
like

"Failure: twisted.mail.smtp.SMTPDeliveryError: 554 No recipients
accepted"
and
"Relay access denied" errors

Is this error is because, i haven't
authenticated my email account to send mail.
Is so , having  username and password of smpt server ,how to
authenticate in
Twisted Framework

Thanks



More information about the Python-list mailing list