ruby - Rails and email openened notifications -
i developing application on rails , need know if possible write code notify me when user opens email has been sent application (need track info) ?
the main bit of info need opened.
thanks
you can there no 100% certainty notification. smtp has 2 standards, dsn , mdn. both in effect optional, there no guarantee email scheme of targeted email recipient (your user) implement them too.
the easiest way pit in "return-receipt-to:"
(rrt) email header. set address content of header. when user opens email message containing header, clients email reader msot prompt users whether or not send homecoming receipt. if comply , email sent address specified. in rails like:
themailer < actionmailer::base def notify_read headers['return-receipt-to:'] = 'notifyread@mysite.com' mail(:to => 'users@somecompany.com') end end
you utilize email address monitor , read them manually or set rails read these emails well. there no guarantee acknowledgment.
additionally check each email domain, many of big free email providers have proprietary methods of requesting homecoming receipt. if add together ".readnotify.com"
onto end of recipients email address homecoming receipt. have research big ones though. example:
user@yahoo.com.readnotify.com
hope helps
source: http://railsforum.com/viewtopic.php?pid=147997#p147997
ruby-on-rails ruby email
No comments:
Post a Comment