[Seaside-dev] How to send email from seaside web application using gmail smtp server

Jayalakshmi Lade jayalakshmi.lade at solteco.biz
Wed Nov 11 07:43:51 UTC 2015


Hi,

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,

username:= 'test at gmail.com'.
 password:='admin'.
 client := SMTPClient openOnHostNamed: 'smtp.gmail.com' port: 465.
 client user: username; password: password; login; initiateSession.
client mailFrom: 'test at gmail.com';
      recipient: 'jayal at gmail.com';
      data:
 'Subject: Hello from SMTPClient!
 From: test at gmail.com
 To: jayal at gmail.com
 Sending from SMTPClient!'.
 client quit.

when I inspect getting this error:  *"Connection closed: Connection closed
while waiting for data".*

Can anyone please help on this?

Looking forward for your suggestions.


*Thanks,*

*Jaya L*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside-dev/attachments/20151111/0f9db6fa/attachment.htm


More information about the seaside-dev mailing list