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.

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

Jodi S. 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://
Peak Obsession
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.

Jodi S. 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.

msmtp is a proxy to your server - you get all the benefits of
activemailer

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