Hi gp,<br>I'm very new to Twisted Framework ,<br>I wrote a very simple code to send mails concurrently, using SMTP mail server<br>the code as below<br><br><br>from twisted.mail.smtp import sendmail<br>from twisted.internet import reactor<br>
from twisted.python.log import err<br>import time<br><br>MAILSERVER = '<a href="http://mail.xxx.com">mail.xxx.com</a>'<br>listTo = ['<a href="mailto:ganesh.xxx@gmail.com">ganesh.xxx@gmail.com</a>', '<a href="mailto:xxjango.py@gmail.com">xxjango.py@gmail.com</a>', '<a href="mailto:lovely_xxx@yahoo.co.in">lovely_xxx@yahoo.co.in</a>']<br>
FROM = '<a href="mailto:gxxxkaran@xxxx.com">gxxxkaran@xxxx.com</a>'<br>MSGBODY = "hi this is test mail"<br>a= time.time()<br>done = sendmail(MAILSERVER, FROM, listTo, MSGBODY ,senderDomainName=None, port=25)<br>
done.addErrback(err)<br>done.addCallback(lambda ignored: reactor.stop())<br>reactor.run() <br>print "Took %s seconds" %str(time.time()-a)<br><br><br>hence i'm not aware of how to authenticate my mail server in Twisted Framework ,this code gives me error saying ,"Relay access denied" <br>
I will be grateful if someone forward me the right solution.<br>Thanks<br>guptha<br>