Advertisement
Guest User

Untitled

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