Advertisement
Guest User

Untitled

a guest
Jan 13th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #Dynamic Mail Send in php
  2. ```php
  3. $email = $_POST['email']; //persone email
  4. $name = $_POST['first_name']; //persone name
  5. $to=$email;
  6. $from="from";
  7. $subject ="Subject";
  8. $headers = "From: Name <example@gmail.com>\r\n";
  9. // $headers .= "Cc: example@gmail.com\r\n";
  10. // $headers .= "Reply-To:example@gmail.com\r\n";
  11. // $headers .= "Return-Path: example@gmail.com\r\n";
  12. $headers .= "MIME-Version: 1.0\r\n";
  13. $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
  14. $message = "Hi $name <br /> <br />Your account has been successfully registered. Once you've downloaded the app, just simply login with your phone number and password on your device and you will be ready to start the ride.<br /><br />GOOD LUCK!";
  15. mail($to,$subject,$message,$headers);
  16. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement