469,336 Members | 5,643 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,336 developers. It's quick & easy.

Code insert in email to check if opened

What html code would I need to insert in an email to track if the
recipient opened it? I was thinking something that could access a cgi
script which I could write. Or perhaps some trick with the <img src=?>
tag?

Thx!

Jul 23 '05 #1
14 14516
sq****@peoriadesignweb.com wrote:
What html code would I need to insert in an email to track if the
recipient opened it?


Why, are you afraid there might be some bogus addresses in that spam list
you bought?

What makes you think HTML has anything to do with email, anyway???

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
Jul 23 '05 #2

Sherm Pendley wrote:

What makes you think HTML has anything to do with email, anyway???

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org


No, i want to track to see if my clients read my emails. If not, then
Ill give them a call. The code would have to be in html, as I don't
know of any way I could insert php/perl code in an email to execute
when someone reads an email?

Jul 23 '05 #3
Previously in comp.infosystems.www.authoring.html,
<sq****@peoriadesignweb.com> said:
No, i want to track to see if my clients read my emails. If not, then
Ill give them a call.
Set your email program to request a receipt when they read it. Some
people may refuse them, but it's likely the most reliable method of
achieving what you want.
The code would have to be in html, as I don't
know of any way I could insert php/perl code in an email to execute
when someone reads an email?


Luckily, no. But there's no way you can guarantee HTML will display when
they read the email either. What if they read their email in plain text?

Besides, HTML can't *do* anything. It is a markup language. It simply
describes the structure of the content.

--
Mark Parnell
http://www.clarkecomputers.com.au
Jul 23 '05 #4
Mark Parnell <we*******@clarkecomputers.com.au> writes:
Set your email program to request a receipt when they read it. Some
people may refuse them, but it's likely the most reliable method of
achieving what you want.
Perhaps. Most privacy concious too.
Luckily, no. But there's no way you can guarantee HTML will display when
they read the email either. What if they read their email in plain text?
True.
Besides, HTML can't *do* anything. It is a markup language. It simply
describes the structure of the content.


Not quite true.

For each of the HTML emails one sends;

<img src="http://senders.webserver.com/foo.php?recipient=some_name">

Where the script logs the recipient query parameter and goes on to
output the image which is then just another part of the visual content
the recipient sees.

Javascript can be used also to have the page tickle a remote server
when the file is loaded. And so, assuming each of the recipients got
a customized version of the email, just about any datum can be passed
to the webserver and logged on a per recipient basis.

I have never used this approach and question the privacy implication
of tracking recipient actions like this.

YMMV

--
-------------------------------------------------------------------------------
Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
305 321-1144 (mobile http://www.JerrySievers.com/
Jul 23 '05 #5
Jerry Sievers <je***@jerrysievers.com> wrote:
For each of the HTML emails one sends;

<img src="http://senders.webserver.com/foo.php?recipient=some_name">

Where the script logs the recipient query parameter and goes on to
output the image which is then just another part of the visual content
the recipient sees.


Won't work for:
* anyone who doesn't read HTML e-mail
* anyone why does use HTML e-mail but who reads their messages offline
* anyone who does use HTML e-mail but who has images switched off
* anyone who does use HTML e-mail but who doesn't let it fetch items
from a remote server (an increasingly common option, designed to
prevent exactly this kind of privacy intrusion)

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 23 '05 #6
In <11**********************@f14g2000cwb.googlegroups .com>, on
02/24/2005
at 07:27 PM, sq****@peoriadesignweb.com said:
What html code would I need to insert in an email to track if the
recipient opened it?


None: HTML doesn't belong in e-mail and with all of the HTML-related
virus attacks you can expect to see more and more users blocking
e-mail contaminated[1] with HTML. There's also the issue of people
reading their mail offline. Finally, what you want to do may violate
privacy laws.

[1] There's nothing wrong with HTML in its place, but that place
isn't mail or net news.

--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to sp******@library.lspace.org

Jul 23 '05 #7
Dan

Jerry Sievers wrote:
Javascript can be used also to have the page tickle a remote server
when the file is loaded. And so, assuming each of the recipients got
a customized version of the email, just about any datum can be passed
to the webserver and logged on a per recipient basis.


Which would have no effect if the user has disabled Javascript (which
the Mozilla suite, for instance, lets you do separately for e-mail even
if you enable it for the Web).

--
Dan

Jul 23 '05 #8
It was somewhere outside Barstow when "Dan" <da*@tobias.name> wrote:
Which would have no effect if the user has disabled Javascript


No, simply loading an image from an <img> link in a HTML email can be
enough to trigger all the user tracking you might need - no
client-side JavaScript needed. Embed a user ID or a message hash in
the src attribute if you wish.
Jul 23 '05 #9
Jerry Sievers wrote:
For each of the HTML emails one sends;

<img src="http://senders.webserver.com/foo.php?recipient=some_name">

Where the script logs the recipient query parameter and goes on to
output the image which is then just another part of the visual
content the recipient sees.


Fortunately, my email client (Thunderbird) as configured "out of the
box" explicitly ignores remote images to protect my privacy. And it
includes a nice big message to tell me when it does so. :-)

--
Brian
Jul 23 '05 #10
On 24 Feb 2005 21:17:27 -0800, sq****@peoriadesignweb.com wrote:
No, i want to track to see if my clients read my emails. If not, then
Ill give them a call.
Don't you have a read receipt option on your email client?
The code would have to be in html, as I don't
know of any way I could insert php/perl code in an email to execute
when someone reads an email?


Bwwaahhhh!!!!!!!!!!

Jul 23 '05 #11
sq****@peoriadesignweb.com writes:
No, i want to track to see if my clients read my emails. If not, then
Ill give them a call. The code would have to be in html, as I don't
know of any way I could insert php/perl code in an email to execute
when someone reads an email?


Ah, good. Those details help. I sent some HTML email just last night
and know a lot about it. Here is the code you want:

<p>Hi! Please reply to this email to let me know you got it. If I
don't hear from you I'll give you a call. <strong>Thanks!</strong></p>

<p>Squash</p>
--

http://ourdoings.com/ Let your digital photos organize themselves.
Sign up today for a 7-day free trial.
Jul 23 '05 #12
"Shmuel (Seymour J.) Metz" <sp******@library.lspace.org.invalid> writes:
[1] There's nothing wrong with HTML in its place, but that place
isn't mail or net news.


I really think you should qulify this. Multipart/alternative with an
HTML part is a good thing in certain instances. For example, a "Here
are my latest photos" email could have thumbnails. Similarly, you could
have a multipart/alternative posting to rec.photo.digital.
--

http://ourdoings.com/ Let your digital photos organize themselves.
Sign up today for a 7-day free trial.
Jul 23 '05 #13
sq****@peoriadesignweb.com wrote:
What html code would I need to insert in an email to track if the
recipient opened it? I was thinking something that could access a cgi
script which I could write. Or perhaps some trick with the <img src=?>
tag?


http://perlmonks.org/?node_id=432283

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #14
sq****@peoriadesignweb.com wrote:
No, i want to track to see if my clients read my emails.
If they didn't want to read your e-mails, they wouldn't subscribe. (I
assume you provide the option to unsubscribe too, and you haven't just
bought a list spam addresses?) Besides, a user's subscription to your
e-mail does not give you the right to investigate their e-mail usage.
If not, then Ill give them a call.
Oh, great! If they don't read your mail, you'll harass them 'till they do?
The code would have to be in html,
Don't include HTML in e-mail anyway, all e-mails should be plain text.
as I don't know of any way I could insert php/perl code in an email to
execute when someone reads an email?


Luckily, most e-mail clients (perhaps with the exception of Outlook)
don't allow the excecution of program code.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Jul 23 '05 #15

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Aquarius2431 | last post: by
reply views Thread by Dafella | last post: by
2 posts views Thread by Michael | last post: by
2 posts views Thread by Spanky | last post: by
1 post views Thread by carl bloc | last post: by
2 posts views Thread by Carlo \(MCP only\) | last post: by
3 posts views Thread by josh.kuo | last post: by
3 posts views Thread by ckirchho | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.