# Can you configure multiple email accounts?

**URL:** <https://www.ruby-forum.com/t/can-you-configure-multiple-email-accounts/176918>\
**Category:** Rails\
**Created:** [October 8, 2009, 9:58am UTC](https://www.ruby-forum.com/t/can-you-configure-multiple-email-accounts/176918 "2009-10-08T09:58:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![charliep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/839c29/32.png) [@charliep](https://www.ruby-forum.com/u/charliep)\
**Post date:** [October 8, 2009, 9:58am UTC](https://www.ruby-forum.com/t/can-you-configure-multiple-email-accounts/176918/1 "2009-10-08T09:58:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![charliep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/839c29/32.png) [@charliep](https://www.ruby-forum.com/u/charliep)\
**Post date:** [October 8, 2009, 12:45pm UTC](https://www.ruby-forum.com/t/can-you-configure-multiple-email-accounts/176918/2 "2009-10-08T12:45:23Z")

</div>

Hi

Pls check below link.I think it help you …

> **[Radar - O’Reilly](https://www.oreilly.com/radar/)**
>
> Now, next, and beyond: Tracking need-to-know trends at the intersection of business and technology

Brijesh S.

---

<div class="post-metadata">

**Author:** ![charliep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/839c29/32.png) [@charliep](https://www.ruby-forum.com/u/charliep)\
**Post date:** [October 8, 2009, 1:17pm UTC](https://www.ruby-forum.com/t/can-you-configure-multiple-email-accounts/176918/3 "2009-10-08T13:17:20Z")

</div>

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-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![charliep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/839c29/32.png) [@charliep](https://www.ruby-forum.com/u/charliep)\
**Post date:** [October 8, 2009, 2:38pm UTC](https://www.ruby-forum.com/t/can-you-configure-multiple-email-accounts/176918/4 "2009-10-08T14:38:46Z")

</div>

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-

---

<div class="post-metadata">

**Author:** ![charliep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/839c29/32.png) [@charliep](https://www.ruby-forum.com/u/charliep)\
**Post date:** [October 8, 2009, 7:22pm UTC](https://www.ruby-forum.com/t/can-you-configure-multiple-email-accounts/176918/5 "2009-10-08T19:22:42Z")

</div>

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 J.
