Wednesday, 21 August 2013

Configure two gmail servers in one Rails 3.2 app?

Configure two gmail servers in one Rails 3.2 app?

Is it possible to configure two gmail servers in one rails app? I did a
web search and didn't come up with anything. I would prefer not to get
involved in using postfix instead of gmail unless that is the only way.
In my production.rb file:
config.action_mailer.smtp_settings = {
address: 'smtp.gmail.com',
port: 587,
domain: 'domain1.com',
user_name: 'serv@domain1.com',
password: '************',
authentication: 'plain',
enable_starttls_auto: true }
I'd like to configure a second server for my gmail server at
serv@domain2.com. Is it possible? If yes, then how?

No comments:

Post a Comment