Advertisement
Guest User

Untitled

a guest
Jun 8th, 2017
685
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. <?php
  2. $from="sample@email.com";
  3. $subject="HI";
  4. $too="reza_marandy@yahoo.com";
  5. $body="adasdasdasd";
  6. $headers = "MIME-Version: 1.0\n" . "Content-type: text/html; charset=utf-8\r\n";
  7. $headers .= 'From: ample@email.com' . "\r\n";
  8. $headers .= 'Return-Path: Sample <ample@email.com> /n';
  9. $headers .= 'Reply-To: Sample <ample@email.com> /n';
  10. $headers .= 'X-Mailer: PHP/' . phpversion();
  11. echo(mail($too, $subject, $body,$headers));
  12. echo "<center><h2><b><font color=black>Mail sent succesfully!</font></b></h3></center>";
  13. }
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement