Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $headers = 'MIME-Version: 1.0' . "n";
- $headers .= "Content-type: text/html; charset=utf-8" . "n";
- $headers .= "Return-Path: <adminemail@yahoo.com>"."n";
- $headers .= "Errors-To: <adminemail@yahoo.com>"."n";
- // Additional headers
- $headers .= "To: email1@yahoo.com <adminemail@yahoo.com>" . "n";
- $headers .= "From: adminemail@yahoo.com <adminemail@yahoo.com>" . "n";
- // Mail it
- mail('email1@yahoo.com', 'test', 'salam', $headers, "f");
- $headers = 'From: webmaster@example.com' . 'rn' .
- 'Reply-To: webmaster@example.com’ . 'rn' .
- 'Return-Path: webmaster@example.com’ . 'rn' .
- mail($to, $subject, $message, $headers, "-femail@wherever.com");
- $headers = "MIME-Version: 1.0rn".
- "Content-type: text/html; charset=utf-8rn".
- "Return-Path: adminemail@yahoo.comrn";
- mail ("email1@yahoo.com","test","salam",$headers,"f");
- $headers = '';
- $headers .= "Reply-To: " . 'yourname@mydomain.com' . "n";
- mail('test@somedomain.com', 'Subject: test', 'this is a test', $headers);
Add Comment
Please, Sign In to add comment