Marcus Ob
2006-Jul-24 15:51 UTC
[Rails] Actionmailer sending many emails in same SMTP connection?
Hi, I need to implement a mailing list system, Actionmailer is great, but i haven''t found out a way to send many (hundreds of) emails without having to reconnect to the SMTP server for each mail when calling Mymailer::deliver_my_mail(recipient) Any tips? (Possibly without calling directly Net::SMTP, so i can take advantage of the rhtml rendering of the body) Thanks, Best regards, Marcus. -- Posted via http://www.ruby-forum.com/.
Jodi Showers
2006-Jul-24 16:12 UTC
[Rails] Actionmailer sending many emails in same SMTP connection?
Hey Marcus - you might check out msmtp (http://msmtp.sourceforge.net/) msmtp activates Pipelining by default. you can read about configuring msmtp with rails here, http:// wiki.rubyonrails.com/rails/pages/HowToSendEmailsWithActionMailer scroll to the bottom under TLS configuration. I''m using it now to test through gmail - like a charm. cheers, Jodi On 24-Jul-06, at 11:48 AM, Marcus Ob wrote:> Hi, > I need to implement a mailing list system, > Actionmailer is great, but i haven''t found out a way to send many > (hundreds of) emails without having to reconnect to the SMTP server > for > each mail when calling > > Mymailer::deliver_my_mail(recipient) > > > > Any tips? > (Possibly without calling directly Net::SMTP, so i can take advantage > of the rhtml rendering of the body) > > Thanks, > Best regards, > Marcus. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Marcus Ob
2006-Jul-24 18:53 UTC
[Rails] Re: Actionmailer sending many emails in same SMTP connection
Jodi Showers wrote:> Hey Marcus - > > you might check out msmtp (http://msmtp.sourceforge.net/) > > msmtp activates Pipelining by default. > > you can read about configuring msmtp with rails here, http:// > wiki.rubyonrails.com/rails/pages/HowToSendEmailsWithActionMailer > scroll to the bottom under TLS configuration. > > I''m using it now to test through gmail - like a charm. > > cheers, JodiThank you, but i''d rather stick to a more traditional environment, i''d prefer using smtp or activemailer... Any other suggestions? Thanks, Marcus. -- Posted via http://www.ruby-forum.com/.
Jodi Showers
2006-Jul-24 18:57 UTC
[Rails] Re: Actionmailer sending many emails in same SMTP connection
msmtp is a proxy to your server - you get all the benefits of activemailer On 24-Jul-06, at 2:52 PM, Marcus Ob wrote:> Jodi Showers wrote: >> Hey Marcus - >> >> you might check out msmtp (http://msmtp.sourceforge.net/) >> >> msmtp activates Pipelining by default. >> >> you can read about configuring msmtp with rails here, http:// >> wiki.rubyonrails.com/rails/pages/HowToSendEmailsWithActionMailer >> scroll to the bottom under TLS configuration. >> >> I''m using it now to test through gmail - like a charm. >> >> cheers, Jodi > > Thank you, but i''d rather stick to a more traditional environment, > i''d prefer using smtp or activemailer... > > Any other suggestions? > > Thanks, > Marcus. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Marcus Ob
2006-Jul-24 19:10 UTC
[Rails] Re: Re: Actionmailer sending many emails in same SMTP connec
Jodi Showers wrote:> msmtp is a proxy to your server - you get all the benefits of > activemailerThank you Jodi, Would it cache up all the emails and bulk them up to the smtp server? Regards, Marcus. -- Posted via http://www.ruby-forum.com/.
Jodi Showers
2006-Jul-24 19:19 UTC
[Rails] Re: Re: Actionmailer sending many emails in same SMTP connec
I''m by no means an expert Marcus, but I know it does enable Pipelining (bulk sends to each recipient) by default. I generally use it because my smtp server requires TLS (ssl) authentication - but it seems pretty full-featured. For more insight into msmtp (including it''s caching capabilities), you''ll get more value from it''s docs. good luck Marcus. Jodi On 24-Jul-06, at 3:08 PM, Marcus Ob wrote:> Jodi Showers wrote: >> msmtp is a proxy to your server - you get all the benefits of >> activemailer > > Thank you Jodi, > Would it cache up all the emails and bulk them up to the smtp server? > > Regards, > Marcus. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails