Douglass Turner
2006-Jun-30 02:45 UTC
[Backgroundrb-devel] Need to send email from a worker
Hello, Can someone suggest the simplest way to send email from a worker? At completion, I need to send the results of it''s work to a recipient. Thanks, Doug Turner skype: dduuggllaa -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060629/94d9fb64/attachment.html
I guess the simplest way would be to forget about ActionMailer cock and bull...and use plain SMTP class of ruby.It takes any way..only 3 to 4 lines of coding to send mails using ruby. On 6/30/06, Douglass Turner <douglass.turner at gmail.com> wrote:> > Hello, > > Can someone suggest the simplest way to send email from a worker? At > completion, I need to send the results of it''s work to a recipient. > > Thanks, > Doug Turner > skype: dduuggllaa > > _______________________________________________ > Backgroundrb-devel mailing list > Backgroundrb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/backgroundrb-devel > >-- nothing much to talk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060629/42f8f830/attachment.html
I''m doing this by just loading the entire rails environment from the background process and using ActionMailer. It increases the overhead of the background process significantly, but since there''s just one of them, that''s OK for me. That way, I was able to take something that already worked in serial, and make it parallel. /Lars On Jun 30, 2006, at 4:45 AM, Douglass Turner wrote:> Hello, > > Can someone suggest the simplest way to send email from a worker? > At completion, I need to send the results of it''s work to a recipient. > > Thanks, > Doug Turner > skype: dduuggllaa > _______________________________________________ > Backgroundrb-devel mailing list > Backgroundrb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/backgroundrb-devel