About twisted.mail.smtp.SMTPDeliveryError

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
 
A

Aahz

MAILSERVER = 'mail.xxx.com'
done = sendmail(MAILSERVER, FROM, listTo,
MSGBODY ,senderDomainName=None, port=25)

"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

Are you doing this from your local machine? If yes, you probably need to
use your ISP's SMTP server; blocking non-local access is one technique
for keeping zombied machines from spewing malware.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top