Advertisement
dmontal2

php_email

May 22nd, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  1. //RANDOM
  2. date_default_timezone_set('America/Los_Angeles');
  3. $date = date("d M Y h:m");
  4.  
  5. if (!empty($email)) {
  6.  
  7. $subject = "Welcome #pozr";
  8.  
  9. $message = "Date: $date\n\nWelcome #pozr\n################\n\nActivate your account by clicking on the following link --> https://www.pozr.in/avt/$confirm\n\n#pozr. Registration Details:\n\nemail -> $eml\n\nusername -> $uname\n\npassword -> $pass\n\n\"Collaborate and Search\"\n\nSalute!\n#pozr Team\nhttps://www.pozr.in";
  10.  
  11. $headers = "From: no-reply@pozr.in\r\n";
  12. $headers .= "Reply-To: no-reply@pozr.in\r\n";
  13. $headers .= "Return-Path: no-reply@pozr.in\r\n";
  14. $headers .= "BCC: diego@pozr.com\r\n";
  15. //$headers .= "CC: info@freagair.com\r\n";
  16.  
  17. if ( mail($eml,$subject,$message,$headers) ) {
  18.  
  19.    echo "Confirmation Email Sent!";
  20.    
  21.     } else {
  22.    
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement