Hi, I have a rails app which sends email via gmail; working great. I''m next looking to set up multiple gmail accounts. I want action A to generate an email from gmail account A ... and action B to generate an email from gmail account B. Is this possible? Thanks in advance, Charlie
Hi Pls check below link.I think it help you ... http://broadcast.oreilly.com/2009/03/using-multiple-smtp-accounts-w.html Brijesh Shah -- Posted via http://www.ruby-forum.com/.
charliep wrote:> Hi, > > I have a rails app which sends email via gmail; working great. > > I''m next looking to set up multiple gmail accounts. > > I want action A to generate an email from gmail account A ... and > action B to generate an email from gmail account B.Just munge the "From:" header to say whatever you like.> > Is this possible? > > Thanks in advance, > CharlieBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
Thanks ... I''m going to go with dynamically loading the settings. Charlie On Oct 8, 7:17 am, Marnen Laibow-Koser <rails-mailing-l...@andreas- s.net> wrote:> charliep wrote: > > Hi, > > > I have a rails app which sends email via gmail; working great. > > > I''m next looking to set up multiple gmail accounts. > > > I want action A to generate an email from gmail account A ... and > > action B to generate an email from gmail account B. > > Just munge the "From:" header to say whatever you like. > > > > > Is this possible? > > > Thanks in advance, > > Charlie > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted viahttp://www.ruby-forum.com/.
If your app is really getting this involved, I''d recommend that you just set up a real mail server on your Rails host and do it properly. Also note that the Gmail for Domains stuff has (at least in the free version) a hard limit of 500 unique To: addresses per day. Alternatively, you could also look into a service like AuthSMTP, and just set up a postfix instance that forwards the mails to them. --Matt Jones On Oct 7, 10:46 pm, charliep <hawthornethre...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I have a rails app which sends email via gmail; working great. > > I''m next looking to set up multiple gmail accounts. > > I want action A to generate an email from gmail account A ... and > action B to generate an email from gmail account B. > > Is this possible? > > Thanks in advance, > Charlie