Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Dynamic Mail Send in php
- ```php
- $email = $_POST['email']; //persone email
- $name = $_POST['first_name']; //persone name
- $to=$email;
- $from="from";
- $subject ="Subject";
- $headers = "From: Name <example@gmail.com>\r\n";
- // $headers .= "Cc: example@gmail.com\r\n";
- // $headers .= "Reply-To:example@gmail.com\r\n";
- // $headers .= "Return-Path: example@gmail.com\r\n";
- $headers .= "MIME-Version: 1.0\r\n";
- $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
- $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!";
- mail($to,$subject,$message,$headers);
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement