Re: [Pharo-users] Sending mails from within Pharo?

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

Re: [Pharo-users] Sending mails from within Pharo?

Tobias Pape

Am 2011-05-26 um 04:51 schrieb Johan Fabry:

> Hi all,
>
> as part of an application that I am hacking together (in Seaside), I want mail notifications / confirmations to be sent to people. I was wondering if there is a Pharo (or Squeak) package out there that serves my needs?

As you already are using Seaside,
* Add a WAEmailConfiguration to your application and configure it
* send a WAEmailMessage like this

        | msg |
        msg := WAEmailMessage
                from: (WAEmailAddress address: '[hidden email]' username: 'John Doe')
                to: (WAEmailAddress address: '[hidden email]' username: 'Jane Doe')
                subject: 'Email Test'.
        msg body: 'This is a Test Email.
It comes from John Doe who is just testing external mails in Seaside-Pharo-Email. '.
        msg send.


Best
        -Tobias_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside