473,324 Members | 2,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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 15225
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Aquarius2431 | last post by:
Hi!, I don't think I have posted to this group before. Have been using PHP on my webserver for a few months now and finding that I like it quite a bit. Here is a question that just occurred...
0
by: Dafella | last post by:
The following is code from Xeoport. It is suppose to access my pop3 account and load email into Mysql database. It's not inserting and there is no log or anything to tell me why. Here is the...
2
by: Michael | last post by:
I know that in order to send an e-mail using Perl there must be a '\' in front of the '@' symbol. For example department\@company.com. And it works. The problem that I am having is that we have...
2
by: Spanky | last post by:
Thanks for any help in advance! I have this order form where you add rows as you need them. The routine to add fields is working fine. I am trying to add the ability to delete rows if you...
1
by: carl bloc | last post by:
Have this much done but need help with this bit of code: allow user to modify existing draw data. I think I need a counter to give week numbers so the user can select a week number rather than a...
3
by: Mike Wiseley | last post by:
I want to insert a procedure call to the report close event of 50 or so reports in a database. As each report is opened and then closed by a user, I want to log the date this occurrred. I am...
2
by: Carlo \(MCP only\) | last post by:
Hi to all I'm askyng you a suggestion about the best way to share the same source code between VS2003 and VS2005. The project I'm developing is a controls and components library, and the...
3
by: josh.kuo | last post by:
Sorry about the subject, I can't think of a better one. I recently wrote some PHP classes that I think might be of interest to this group. Since I have been reaping the benefits of reading news...
3
by: ckirchho | last post by:
Hallo, my task is to establish some kind of full text file search in Javascript. The files and it's contents are fixed, the HTML/JavaScript pages lie offline on a server. As far as Javascript...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.