Sending emails

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

Sending emails

Guillaume Bourachot
Hi.

|question |
question := "Is it possible to send eMails with seaside ?".
question ifTrue:[ How can I do this ? ].

Thanks for your help.

Guillaume Bourachot

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

Re: Sending emails

Philippe Marschall
2006/5/21, Guillaume Bourachot <[hidden email]>:
> Hi.
>
> |question |
> question := "Is it possible to send eMails with seaside ?".
> question ifTrue:[ How can I do this ? ].
>
> Thanks for your help.

SeasidePlatfromSupport class >> #deliverMailFrom:to:text:

Note that you need access to an smtp server.

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

Re: Sending emails

Mac1974
In reply to this post by Guillaume Bourachot
"Fill in the appropriate fields, this works"
| username password client |
username:= 'yourName@whatever.com'.
password:='yourPassword'.
"Use port 25 or 26 normally"
client := SMTPClient openOnHostNamed: 'mail.whatever.com' port: 26.
client user: username; password: password.
[client
                mailFrom: 'yourName@whatever.com'  
                to: #('someoneElse@whatever.com')  
                text: 'Subject: Hello from SMTPClient!
From: <fromEmail>
To: <toEmail>
Sending from SMTPClient!'.

client quit]
ensure:[client close]

Guillaume Bourachot wrote
Hi.

|question |
question := "Is it possible to send eMails with seaside ?".
question ifTrue:[ How can I do this ? ].

Thanks for your help.

Guillaume Bourachot

_______________________________________________
Seaside mailing list
Seaside@lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside