php and send mail

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mortar
Forum Newbie
Posts: 2
Joined: Sun Feb 02, 2003 11:27 pm

php and send mail

Post 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
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post 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..
mortar
Forum Newbie
Posts: 2
Joined: Sun Feb 02, 2003 11:27 pm

Post 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
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post 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..
Post Reply