<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:= '<a href="mailto:test@gmail.com">test@gmail.com</a>'.</div><div> password:='admin'.</div><div> client := SMTPClient openOnHostNamed: '<a href="http://smtp.gmail.com">smtp.gmail.com</a>' port: 465.</div><div> client user: username; password: password; login; initiateSession.</div><div>client mailFrom: '<a href="mailto:test@gmail.com">test@gmail.com</a>';</div><div> recipient: '<a href="mailto:jayal@gmail.com">jayal@gmail.com</a>';</div><div> data:</div><div> '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!'.</div><div> client quit.</div><div><br></div><div>when I inspect getting this error: <b>"Connection closed: Connection closed while waiting for data".</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:'Monotype Corsiva'">Thanks,</span></b></p><p>
</p><p><b><span style="font-size:10pt;line-height:115%;font-family:'Monotype Corsiva'">Jaya L</span></b></p></div></div>
</div></div>