Guest User

Untitled

a guest
Jan 16th, 2019
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <?php
  2. $email_from="admin@crorebook.com";
  3. ini_set("sendmail_from", $email_from);
  4. $headers = "From: $email_from";
  5. mail('gitudrebel94@gmail.com','Registration confirmation','Hihihihihihih','$headers');
  6. ?>
  7.  
  8. require_once /*lib location*/"phpmailer/class.phpmailer.php";
  9. require_once /*lib location*/"phpmailer/class.smtp.php";
  10.  
  11. $mail=new PHPMailer();
  12. $mail->IsSMTP();
  13. $mail->Host=/*Your host*/;
  14. $mail->Port=465;//For SSL - use this if you can
  15. $mail->SMTPAuth=true;
  16. $mail->SMTPSecure="ssl";
  17. $mail->SMTPDebug=2;//Comment once it works, but the debug info is invaluable
  18. $mail->Username=/*Your username*/;
  19. $mail->Password=/*Your password*/;
  20. $mail->setFrom("admin@crorebook.com");
  21. $mail->Subject='Registration confirmation';
  22. $mail->Body='Hihihihihihih';
  23. $mail->AddAddress('gitudrebel94@gmail.com');
  24. $mail->Send();
Add Comment
Please, Sign In to add comment