Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Always set content-type when sending HTML email
- $headers = "MIME-Version: 1.0" . "\r\n";
- $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
- $headers .= "From: webmaster@yourdomain.com \r\n";
- $from = "webmaster@yourdomain.com";
- mail('support@yourdomain.com', 'test message' , 'this is the test message', $headers, "-f ".$from);
- echo "Mail Sent.";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement