# Setting "from" address in ActionMailer

**URL:** <https://www.ruby-forum.com/t/setting-from-address-in-actionmailer/144758>\
**Category:** Rails\
**Created:** [August 1, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/setting-from-address-in-actionmailer/144758 "2008-08-01T21:01:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_LIn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/45deac/32.png) [@Eric\_LIn](https://www.ruby-forum.com/u/Eric_LIn)\
**Post date:** [August 1, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/setting-from-address-in-actionmailer/144758/1 "2008-08-01T21:01:52Z")

</div>

I’m having trouble setting the “from” address when I use ActionMailer  
to send emails. I’m using the SMTP method, with [01.com](http://01.com) as my host.  
It seems [01.com](http://01.com) is ignoring the value I set in @from in my  
ActionMailer model. Is this a common problem with third-party SMTP  
hosts? How do I work around it?

Eric

---

<div class="post-metadata">

**Author:** ![Eric\_LIn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/45deac/32.png) [@Eric\_LIn](https://www.ruby-forum.com/u/Eric_LIn)\
**Post date:** [August 3, 2008, 10:06am UTC](https://www.ruby-forum.com/t/setting-from-address-in-actionmailer/144758/2 "2008-08-03T10:06:52Z")

</div>

On Fri, Aug 1, 2008 at 2:01 PM, Eric LIn [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’m having trouble setting the “from” address when I use ActionMailer  
> to send emails. I’m using the SMTP method, with [01.com](http://01.com) as my host.  
> It seems [01.com](http://01.com) is ignoring the value I set in @from in my  
> ActionMailer model. Is this a common problem with third-party SMTP  
> hosts?

For as long as I can remember. That’s what sendmail’s -f is for.

> How do I work around it?

Check to make sure your smtp allows -f, it may be configured not to.

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)
