Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $email_from="admin@crorebook.com";
- ini_set("sendmail_from", $email_from);
- $headers = "From: $email_from";
- mail('gitudrebel94@gmail.com','Registration confirmation','Hihihihihihih','$headers');
- ?>
- require_once /*lib location*/"phpmailer/class.phpmailer.php";
- require_once /*lib location*/"phpmailer/class.smtp.php";
- $mail=new PHPMailer();
- $mail->IsSMTP();
- $mail->Host=/*Your host*/;
- $mail->Port=465;//For SSL - use this if you can
- $mail->SMTPAuth=true;
- $mail->SMTPSecure="ssl";
- $mail->SMTPDebug=2;//Comment once it works, but the debug info is invaluable
- $mail->Username=/*Your username*/;
- $mail->Password=/*Your password*/;
- $mail->setFrom("admin@crorebook.com");
- $mail->Subject='Registration confirmation';
- $mail->Body='Hihihihihihih';
- $mail->AddAddress('gitudrebel94@gmail.com');
- $mail->Send();
Add Comment
Please, Sign In to add comment