phool4fool
203.***.***.***Send Emails with Read Reciepts
This code will request a read receipt from the recipient when receiving your emails.It also has a security feature to include the person's IP address who initiated the email.
Message priorities are also depicted in this example.
Very simple lesson on Email headers.
PHP Example:
PHP code:
<?php
$headers .= "From: Your Name<you@you.com>n";
$headers .= "Return-Path: <you@you.com>n"; //Return bounced mails to.
$headers .= "X-Priority: 1n"; //Message priority is set to HIGH
$headers .= "X-MSMail-Priority: Highn"; //Message Priority for Exchange Servers
$headers .= "Disposition-Notification-To: Your Name<you@you.com>n"; //Read receipt
$headers .= "X-Mailer: PHP(".$_SERVER['REMOTE_ADDR'].")n"; //IP address of who sent the mail.
$email = "someone@somewhere.com"; // Recipients anddress
$subject = "Some Subject"; // Subject
$message .= "Dear Friend,nn"; // Email body
$message .= "Some stuff here!nn";
$message .= "Thanks for your time,n";
$message .= "Your Namen";
mail($email, $subject, $message, $headers);
?>