Monday, March 5, 2012

Re: [Rails] Re: Mail statistics

On Mar 5, 2012, at 3:54 PM, Marcelo G. Silva wrote:

> the problem is that I need to create this type of service, like the
> MailChimp.

Then you're going to have to solve the same problems they have.

The usual way to figure out if someone has opened a mail message is to add a "beacon" image to it. You add a 1x1px image in the body of the e-mail message linked from your server, and use the path to that image to convey a code. <img src="http://example.com/tracker/asdfs78223/pixel.gif" /> Another spin on this is to add the token to each regular image in your layout. You make up these tokens when you send out the message, so you know that asdfs78223 == joebob@foo.com.

Back in Rails, you create a route for this image, and serve the image but also record the request in your database.

Walter

>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate