As promised... I tested it, and worked. Thank you again Norbert!

I chose Mandrill over Postmark by two main reasons (other than better
looking UI):
* It doesn't require me to authenticate the from address (which is
unexistant, because it is a no-reply address, and the domain doesn't
even have a MX server).
* It's pretty much free (though this is not a relevant factor )

Now about the strategy when sending emails from Pharo...

Assuming you flag the transactions as "mailSent" or similar.

How do you send the emails?

1.a. Right after the "transaction" (or other trigger/status) was performed?
1.b. Right after the transaction, but forking (#fork) the submission
and returning immediately (to avoid waits on the client side)
2.a With a worker image with a loop and running indefinitely (checking
mails in the database every n minutes)
2.b. Running a cron job that starts a Pharo image, does his jobs, and quits

3. Some real architecture involving some kind of live communication
(sockets, MQ, etc.) between the image where the event was triggered
and the worker image.

4. ?

I was thinking in doing 2.

Comments suggerences?

Best regards!

Reply via email to