# Reading e-Mails

**URL:** <https://www.ruby-forum.com/t/reading-e-mails/93091>\
**Category:** Rails\
**Created:** [April 27, 2007, 11:57am UTC](https://www.ruby-forum.com/t/reading-e-mails/93091 "2007-04-27T11:57:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![muralimaran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/db5fbb/32.png) [@muralimaran](https://www.ruby-forum.com/u/muralimaran)\
**Post date:** [April 27, 2007, 11:57am UTC](https://www.ruby-forum.com/t/reading-e-mails/93091/1 "2007-04-27T11:57:46Z")

</div>

Hi,

I am new to ActionMailer, need to read incoming mails using rails  
ActionMailer, dont know how to do it… also need to track bounced mails.

Can anybody help me pls.

Thanks  
Muralimaran K…

---

<div class="post-metadata">

**Author:** ![muralimaran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/db5fbb/32.png) [@muralimaran](https://www.ruby-forum.com/u/muralimaran)\
**Post date:** [April 27, 2007, 12:07pm UTC](https://www.ruby-forum.com/t/reading-e-mails/93091/2 "2007-04-27T12:07:21Z")

</div>

Muralimaran K. wrote:

> 

I’ve never done it but have you seen this:  
[http://wiki.rubyonrails.org/rails/pages/HowToReceiveEmailsWithActionMailer](http://wiki.rubyonrails.org/rails/pages/HowToReceiveEmailsWithActionMailer)  
Is there something in the instructions that doesn’t work?

Cheers  
mohit.

---

<div class="post-metadata">

**Author:** ![muralimaran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/db5fbb/32.png) [@muralimaran](https://www.ruby-forum.com/u/muralimaran)\
**Post date:** [April 30, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/reading-e-mails/93091/3 "2007-04-30T17:29:55Z")

</div>

My best suggestion is to get the Agile Web D. with Rails by  
Dave T., DHH et.al.

[http://pragmaticprogrammer.com/titles/rails/index.html](http://pragmaticprogrammer.com/titles/rails/index.html)

It has a complete example of receiving email, as well as sending.

DZ

On Apr 27, 5:28 am, Muralimaran K. \<rails-mailing-l…@andreas-

---

<div class="post-metadata">

**Author:** ![muralimaran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/db5fbb/32.png) [@muralimaran](https://www.ruby-forum.com/u/muralimaran)\
**Post date:** [April 27, 2007, 12:28pm UTC](https://www.ruby-forum.com/t/reading-e-mails/93091/4 "2007-04-27T12:28:10Z")

</div>

Mohit S. wrote:

> Muralimaran K. wrote:
> 
> > 
> 
> I’ve never done it but have you seen this:  
> [http://wiki.rubyonrails.org/rails/pages/HowToReceiveEmailsWithActionMailer](http://wiki.rubyonrails.org/rails/pages/HowToReceiveEmailsWithActionMailer)  
> Is there something in the instructions that doesn’t work?
> 
> Cheers  
> mohit.

Hi Mohit,

Thanks for your reply,

I saw your posting, but dont know where to use it.  
e.g.,

def receive(email)

what should be given in place of “email” parameter…

Any help can be appreciated.

Regards,  
Muralimaran K…

---

<div class="post-metadata">

**Author:** ![muralimaran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/db5fbb/32.png) [@muralimaran](https://www.ruby-forum.com/u/muralimaran)\
**Post date:** [April 30, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/reading-e-mails/93091/5 "2007-04-30T20:35:22Z")

</div>

Rails Cookbook has a great section on how to do this.

---

<div class="post-metadata">

**Author:** ![muralimaran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/db5fbb/32.png) [@muralimaran](https://www.ruby-forum.com/u/muralimaran)\
**Post date:** [April 30, 2007, 6:30pm UTC](https://www.ruby-forum.com/t/reading-e-mails/93091/6 "2007-04-30T18:30:05Z")

</div>

“email” is an object of TMail class. Read every word on the wiki  
([http://wiki.rubyonrails.org/rails/pages/HowToReceiveEmailsWithActionMailer](http://wiki.rubyonrails.org/rails/pages/HowToReceiveEmailsWithActionMailer))  
and you should be fine!

On 4/27/07, Muralimaran K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > mohit.  
> > what should be given in place of “email” parameter…

–  
rm -rf / 2\>/dev/null - [http://null.in](http://null.in)

Dont judge those who try and fail, judge those who fail to try…
