Sending mails from within Pharo?

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

Sending mails from within Pharo?

jfabry
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?

Thanks in advance!
--
Johan Fabry  
[hidden email] - http://dcc.uchile.cl/~jfabry
PLEIAD Lab - Computer Science Department (DCC) - University of Chile




Reply | Threaded
Open this post in threaded view
|

Re: 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
Reply | Threaded
Open this post in threaded view
|

Re: Sending mails from within Pharo?

jfabry

Cool, I will try this today. :-)

Thanks, Tobias!

On 26 May 2011, at 01:32, Tobias Pape wrote:

>
> 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

--
Johan Fabry  
[hidden email] - http://dcc.uchile.cl/~jfabry
PLEIAD Lab - Computer Science Department (DCC) - University of Chile