Hi gp,<br>I&#39;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 = &#39;<a href="http://mail.xxx.com">mail.xxx.com</a>&#39;<br>listTo = [&#39;<a href="mailto:ganesh.xxx@gmail.com">ganesh.xxx@gmail.com</a>&#39;, &#39;<a href="mailto:xxjango.py@gmail.com">xxjango.py@gmail.com</a>&#39;, &#39;<a href="mailto:lovely_xxx@yahoo.co.in">lovely_xxx@yahoo.co.in</a>&#39;]<br>
FROM = &#39;<a href="mailto:gxxxkaran@xxxx.com">gxxxkaran@xxxx.com</a>&#39;<br>MSGBODY = &quot;hi this is test mail&quot;<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 &quot;Took %s seconds&quot; %str(time.time()-a)<br><br><br>hence i&#39;m not aware of how to authenticate my mail server in Twisted Framework ,this code gives me error saying ,&quot;Relay access denied&quot; <br>
I will be grateful  if someone forward me the right solution.<br>Thanks<br>guptha<br>