mrqzzz
July 24, 2006, 5:48pm
#1
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.
mrqzzz
July 24, 2006, 6:13pm
#2
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
mrqzzz
July 24, 2006, 8:52pm
#3
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://
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.
mrqzzz
July 24, 2006, 9:08pm
#4
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.
mrqzzz
July 24, 2006, 9:01pm
#5
msmtp is a proxy to your server - you get all the benefits of
activemailer
mrqzzz
July 24, 2006, 9:22pm
#6
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