<div dir="ltr">Hi,<div><br></div><div>I want to send an email using gmail smtp server from my seaside web application to any email id, for that in workspace I used below code,</div><div><br></div><div><div>username:= &#39;<a href="mailto:test@gmail.com">test@gmail.com</a>&#39;.</div><div> password:=&#39;admin&#39;.</div><div> client := SMTPClient openOnHostNamed: &#39;<a href="http://smtp.gmail.com">smtp.gmail.com</a>&#39; port: 465.</div><div> client user: username; password: password; login; initiateSession.</div><div>client mailFrom: &#39;<a href="mailto:test@gmail.com">test@gmail.com</a>&#39;;</div><div>      recipient: &#39;<a href="mailto:jayal@gmail.com">jayal@gmail.com</a>&#39;;</div><div>      data:</div><div> &#39;Subject: Hello from SMTPClient!</div><div> From: <span class="" style="white-space:pre">        test</span>@<a href="http://gmail.com">gmail.com</a><span class="" style="white-space:pre">                        </span></div><div> To: <a href="mailto:jayal@gmail.com">jayal@gmail.com</a></div><div> Sending from SMTPClient!&#39;.</div><div> client quit.</div><div><br></div><div>when I inspect getting this error:  <b>&quot;Connection closed: Connection closed while waiting for data&quot;.</b></div><div><b><br></b></div><div>Can anyone please help on this?</div><div><br></div><div>Looking forward for your suggestions.</div><div><br></div><div><br></div><div class="gmail_signature"><div dir="ltr"><p><b><span style="font-size:10pt;line-height:115%;font-family:&#39;Monotype Corsiva&#39;">Thanks,</span></b></p><p>

</p><p><b><span style="font-size:10pt;line-height:115%;font-family:&#39;Monotype Corsiva&#39;">Jaya L</span></b></p></div></div>
</div></div>