# Action mailer

**URL:** <https://www.ruby-forum.com/t/action-mailer/143734>\
**Category:** Ruby\
**Created:** [July 22, 2008, 10:45am UTC](https://www.ruby-forum.com/t/action-mailer/143734 "2008-07-22T10:45:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sujith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/77aa72/32.png) [@sujith](https://www.ruby-forum.com/u/sujith)\
**Post date:** [July 22, 2008, 10:45am UTC](https://www.ruby-forum.com/t/action-mailer/143734/1 "2008-07-22T10:45:44Z")

</div>

i want how to recieve mails to inbox

---

<div class="post-metadata">

**Author:** ![sujith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/77aa72/32.png) [@sujith](https://www.ruby-forum.com/u/sujith)\
**Post date:** [July 22, 2008, 11:03am UTC](https://www.ruby-forum.com/t/action-mailer/143734/2 "2008-07-22T11:03:50Z")

</div>

You need to configure your action mailer in the application else you can  
aslo do with plain ruby using net/http.

On Tue, Jul 22, 2008 at 2:10 PM, Sujith Gangaraju \<

---

<div class="post-metadata">

**Author:** ![sujith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/77aa72/32.png) [@sujith](https://www.ruby-forum.com/u/sujith)\
**Post date:** [July 22, 2008, 12:02pm UTC](https://www.ruby-forum.com/t/action-mailer/143734/3 "2008-07-22T12:02:19Z")

</div>

kranthi reddy wrote:

> You need to configure your action mailer in the application else you can  
> aslo do with plain ruby using net/http.
> 
> On Tue, Jul 22, 2008 at 2:10 PM, Sujith Gangaraju \<

any detailed description about it

---

<div class="post-metadata">

**Author:** ![sujith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/77aa72/32.png) [@sujith](https://www.ruby-forum.com/u/sujith)\
**Post date:** [July 22, 2008, 12:13pm UTC](https://www.ruby-forum.com/t/action-mailer/143734/4 "2008-07-22T12:13:04Z")

</div>

You need to generate an actionmailer using ruby script/generate mailer  
  
This will generate the mailer required files for you.  
Once you are done with that you need to configure with the  
evnironment.rb  
file  
ActionMailer::Base.server\_settings{  
:address =\> ‘required address’,  
:port =\>‘port number’,  
:domian =\> ‘which mailer domain you are using’,  
:authentication =\> ':login,  
:usernmae =\>‘username’,  
:password =\> ‘passwrod’  
}  
Once these are configured you need to write the mailer code in it.You  
can  
also refer to page 411 from the book agile web developement which  
contains a  
chapter regarding this mailer functionality  
kranthi.

On Tue, Jul 22, 2008 at 3:26 PM, Sujith Gangaraju \<
