How to send email from seaside web application using gmail smtp server

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to send email from seaside web application using gmail smtp server

Jaya L
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:= '[hidden email]'.
 password:='admin'.
 client := SMTPClient openOnHostNamed: 'smtp.gmail.com' port: 465.
 client user: username; password: password; login; initiateSession.
client mailFrom: '[hidden email]';
      recipient: '[hidden email]';
      data:
 'Subject: Hello from SMTPClient!
 From: test@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


_______________________________________________
seaside-dev mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to send email from seaside web application using gmail smtp server

Stephan Eggermont-3
On 11-11-15 08:43, Jayalakshmi Lade wrote:
> I want to send an email using gmail smtp server from my seaside web
> application to any email id,

You probably want to use ZdcSecureSMTPClient.

Stephan


_______________________________________________
seaside-dev mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to send email from seaside web application using gmail smtp server

Johan Brichau-2

On 11 Nov 2015, at 09:04, Stephan Eggermont <[hidden email]> wrote:

On 11-11-15 08:43, Jayalakshmi Lade wrote:
I want to send an email using gmail smtp server from my seaside web
application to any email id,

You probably want to use ZdcSecureSMTPClient.

Probably a good idea to facilitate using that in Seaside [1]


_______________________________________________
seaside-dev mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to send email from seaside web application using gmail smtp server

Jaya L
Thank you it is working.