Page 1 of 1

php and send mail

Posted: Sun Feb 02, 2003 11:27 pm
by mortar
hello:

i was wondering how to send a mail with php and when the user get the mail and read it the mail client ask for a return recipient, what kind or line u need to add to the code.

pls help i really need this to control who is reading the mails thanks.

mortar

Posted: Sun Feb 02, 2003 11:46 pm
by Stoker

Code: Select all

<?php

mail (
  'receiver@__swny.net',
  'The subject',
  'The email message goes here',
  'From: myemail@__sauen.com'.
    "\r\n".'X-Mailer: PHP-homemade/4.3'.
    "\r\n".'Disposition-Notification-To: mynotify@__stokkeland.info');

?>
Requesting receipt does not guarantee that you get one, most (sane) email clients will always as a client before sending one, and many (like me) turn off all receipts..

Posted: Sun Feb 02, 2003 11:55 pm
by mortar
wheelll ur right but any idea to get that information... u know how i can know wich users read the message sended.

thanks for the code was really usefull

Posted: Mon Feb 03, 2003 12:09 am
by Stoker
There are many ways to confirm that the email has been viewed in a html-compliant email client, but such stuff I would say is very borderline with spam/list stuff, so I won't post any details on that..

However, if you want to make sure that a client or subscriber is reading something, simply send text indicating that they need to go to your website and read and click ok to some agreement or whatever it is..