G
gganesh
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 = ['(e-mail address removed)', '(e-mail address removed)',
'(e-mail address removed)', '(e-mail address removed)']
FROM = '[email protected]'
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
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 = ['(e-mail address removed)', '(e-mail address removed)',
'(e-mail address removed)', '(e-mail address removed)']
FROM = '[email protected]'
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