Disposition-Notification-To: is not a sure bet, since the majority of people ignore the return receipt.
The only way you will know if the email address is invalid is when the email bounces back and the server sends you the error message. At this point you can have a script check the email server spool file for bounced messages containing invalid email addresses. If are running an in-house web server, one way you can check if the user received the email, rather than attaching the pdf file to the email, generate and keep the pdf file on your web server. Then on the email give them a link to your web server where they can download the file. But instead of linking straight to the pdf file, use a download script that will check what file is being downloaded and then report this back to you. Something like: http://www.mydomain.com/download.php?file=QuoteXXXX.pdf If you must attach the file to the email, then another method would be to include an <IMG> tag in the email message, so when the recipient opens up the email <IMG> will call out a script on your server which will track the users email address and then report this back to you. Something like: <IMG SRC="http://www.mydomain.com/[EMAIL PROTECTED]" WIDTH="1" HEIGHT="1" BORDER="0"> -----Original Message----- From: Brian S. Drexler [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 11:19 AM To: 'Ralph Guzman' Subject: RE: [PHP] Mail Header/Return Receipt That is a good idea. I can tell them it has at least been sent from our server, but what if the e-mail address they are sending it to is not valid? I'd like for them to know if it fails. I'll figure it out. When I do I'll let you know what I did. Thanks for all the help and suggestions! Brian -----Original Message----- From: Ralph Guzman [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 2:12 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Mail Header/Return Receipt once the email is sent out, can't you simply have your script send the user a receipt? If you must use Disposition-Notification-To: for the receipt then I think you will have to figure how to do this on the email server level. Afterall, the script is doing what it's supposed to. -----Original Message----- From: Brian S. Drexler [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 10:47 AM To: 'Ralph Guzman' Subject: RE: [PHP] Mail Header/Return Receipt I can't. Server A has a printer driver installed that calls some PHP functions. It takes the title tag from a Postscript file sent to the printer and gets some information from a different machine running MySQL on our network. Depending on this information it may fax the postscript file using HylaFAX or e-mail it. If it is going to e-mail then it then takes that information (e-mail address, to and from, phone number, etc.) and creates an HTML e-mail and a PDF file and e-mail's them. It works pretty well for us and it makes it simple for the people using the application. All they do is print the report to a default printer and it does all the work for them. With the faxes it will e-mail them a confirmation if it fails or not, and that's what I'm trying to get the e-mail to do (quite unsuccessfully I might add). Good thought though. Any other ideas? -----Original Message----- From: Ralph Guzman [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 1:41 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Mail Header/Return Receipt What if you run the script from server b? -----Original Message----- From: Brian S. Drexler [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 10:33 AM To: 'Ralph Guzman' Subject: RE: [PHP] Mail Header/Return Receipt Ok, I wasn't sure if it was a simple "header" tag that I was missing or something like that. Thanks though... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php