# Help me pls:Tracking mails in rails

**URL:** <https://www.ruby-forum.com/t/help-me-pls-tracking-mails-in-rails/187504>\
**Category:** Rails\
**Created:** [April 24, 2010, 6:43am UTC](https://www.ruby-forum.com/t/help-me-pls-tracking-mails-in-rails/187504 "2010-04-24T06:43:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![murfhy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Post date:** [April 24, 2010, 6:43am UTC](https://www.ruby-forum.com/t/help-me-pls-tracking-mails-in-rails/187504/1 "2010-04-24T06:43:27Z")

</div>

hai friends can anone help me to provide a way to implement the  
following using rails.

i created a mail campaign application.if a user successfuly  
created a campaign he will be getting a mail.

1. how i can track that someone opens the mail?  
what i did is just pass some parameters like used id , campaign id  
along with this.then i created one table to store the resulting  
url, campaign id, user id, and count. can anyone tell me about he  
controller method . is ma way is correct or not?

2. if one user got a mail and he forward that mail, how can i  
track ordetect the forward mail count.

Thanks,

tony

---

<div class="post-metadata">

**Author:** ![murfhy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Post date:** [April 24, 2010, 9:53am UTC](https://www.ruby-forum.com/t/help-me-pls-tracking-mails-in-rails/187504/2 "2010-04-24T09:53:59Z")

</div>

On 24 April 2010 05:43, Tony A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> hai friends can anone help me to provide a way to implement the  
> following using rails.
> 
> i created a mail campaign application.if a user successfuly  
> created a campaign he will be getting a mail.
> 
> 1. how i can track that someone opens the mail?

As discussed in your previous post it is not possible to do this  
reliably. Consider emails you receive yourself for example. Do you  
want the sender to know when you open it on your personal PC? In  
principle this could allow him to determine things about you that you  
want to keep private. Are you at home at a particular time of day for  
example.

Colin

---

<div class="post-metadata">

**Author:** ![murfhy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Post date:** [April 24, 2010, 9:59am UTC](https://www.ruby-forum.com/t/help-me-pls-tracking-mails-in-rails/187504/3 "2010-04-24T09:59:46Z")

</div>

Colin L. wrote:

> On 24 April 2010 05:43, Tony A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > hai friends ï¿½can ï¿½anone ï¿½help me to provide a way to implement the  
> > following ï¿½using ï¿½rails.
> > 
> > ï¿½i ï¿½created a ï¿½mail campaign ï¿½application.if a ï¿½ user ï¿½ successfuly  
> > created a campaign he ï¿½will be ï¿½getting a mail.
> > 
> > 1. how i can ï¿½track that someone opens the mail?
> 
> As discussed in your previous post it is not possible to do this  
> reliably. Consider emails you receive yourself for example. Do you  
> want the sender to know when you open it on your personal PC? In  
> principle this could allow him to determine things about you that you  
> want to keep private. Are you at home at a particular time of day for  
> example.
> 
> Colin

hallo sir. it can be done . in mailchimp and all theyb are  
tracking opened messages and also if that messages are forewarded to  
some one else, can track the open count of foreward mails opens

---

<div class="post-metadata">

**Author:** ![murfhy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Post date:** [April 24, 2010, 11:39am UTC](https://www.ruby-forum.com/t/help-me-pls-tracking-mails-in-rails/187504/4 "2010-04-24T11:39:55Z")

</div>

On 24 April 2010 08:59, Tony A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > As discussed in your previous post it is not possible to do this  
> > some one else, can track the open Â count of Â foreward mails opens  
> > Notice that I said it cannot be done _reliably_. Frederick suggested  
> > a method of including a image link in the email which can be logged at  
> > your site to indicate that the receiver has viewed the image. This  
> > will only work if the recipient has his email viewer setup to  
> > automatically open images, which many do not. Whatever mailchimp say  
> > they cannot guarantee it, they would not be able to detect that I had  
> > opened one of their mails for example.

Colin

Colin
