Discussion Locked

Email Auto reply

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Is it possible to program script so that emails i send can reply to me that they have reached their address and have been opened at a particular time. I am looking at it in a similar way as exchange works over an internal lan.

Thanks

7 replies

by rawright

Using Outlook or Outlook Express you can set and option to request a receipt in the Tools/Options menu. Unfortunately, the recipient has the option to decline to send it.

by joeros

That is the reason that i looked at a script. I need the reply to come back automatically

by rod

In Short: NO

Hi,
It seems that you are looking for acknowledgements for all emails that you send out and also the status of the email.

This is how the email mechanism works. You send an email through a SMTP server which has an account for you. The server connects to the internet and puts your mail on the highway where it is routed to the destination
mail server. If the destination is not reached, your server receives a bounce which
it will send you back. But when the destination server receives the email, it is
entitled to do what ever it wants to with it.
It can be configured to send you an ack but
you have no control over it and I presume that you want to send mail to any arbitrary
mail server.

So to achieve what you intend, you may have to enclose a program in your email that executes when the receipient reads it. The program can send you an ack and whatever info you want. But this is something like sending a virus though your intentions are not malicious, not all whom you communicate with will like it. Also you have to make assumptions about the MailTool that the recepient uses and a generic program is difficult.

Conclusion: It is safe to assume that the email has reached if you receive no bounces. Unless you have control over the destination mail server, you cannot get the status of your mail.

by joeros

you are on the right track, I need a script. However, the destination address's mail client IS known. I only need it for one specific customer. They say they do not receive my emails yet everyone else does. I know that their email client is set up correctly because they receive some of my emails. The point is well taken about the virus aspect but as i say it is only for 1 particular client. I cannot work out why some emails get through and others do not.
Follow me :>)
Thanks for the effort inthe reply but it does not help me yet

Regards

by jay eckles

If you know that the email client is HTML-aware, that is, if you send an HTML-formatted email message, the client will display the HTML like a browser would, then you can create your own "return receipt". Almost all email clients these days are HTML-aware.

What you do is include the following HTML tag in the email:

On your webserver, create a CGI program called track.cgi that reads a 1x1 transparent gif from a file, sets Content-type to "image/gif", and writes the file to stdout. Very simple, I can give you sample source if you need it. In addition to doing this, the CGI should record information regarding the time it was executed, and any other variables you like such as the user's IP address...see http://hoohoo.ncsa.uiuc.edu/cgi for all of the available variables. The CGI could then save that information in a file or email it to you, however you want to be notified.

When the user opens the email, it will request an image from the cgi on your server; the cgi records the information and sends the image back.

This return receipt will fail if the user is reading the email while not connected to the internet (unlikely). It will also send notification each and every time the email is read; if this is undesirable, you can program the CGI to send notification to you only once. The image is invisible to the user, and the user has no idea that a receipt is being sent.

This method does not *have* to be a CGI program. It could be a Java servlet, a JSP, an ASP, PHP, or any kind of server-side program.

Let me know if you'd like more details or would like me to do the programming for you.

Jay Eckles
www.jayeckles.com

This discussion is closed to new replies.