Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(!class_exists('PHPMailer')) {
- require('PHPMailer/_lib/class.phpmailer.php');
- }
- $mail = new PHPMailer();
- $emailBody = "<div>" . $user["Name"] . ",<br><br><p>These are your User Data:<br>". $user["Name"] . $user["password"] . "<br><br></p>Regards,<br> Admin.</div>";
- $mail->IsSMTP();
- $mail->SMTPDebug = 0;
- $mail->SMTPAuth = TRUE;
- $mail->SMTPSecure = "tls";
- $mail->Port = 587;
- $mail->Username = "Maria Papa";
- $mail->Password = "@PaPaDaKi070695@";
- $mail->Host = "smtp.gmail.com";
- $mail->Mailer = "smtp";
- $mail->From = "MariaGPap95@gmail.com";
- $mail->FromName = "Maria Papa";
- $mail->AddReplyTo("MariaGPap95@gmail.com", "PHPPot");
- $mail->ReturnPath="MariaGPap95@gmail.com";
- $mail->AddAddress("mary_lee@hotmail.gr");
- $mail->Subject = "Forgot Password Recovery";
- $mail->WordWrap = 80;
- $mail->MsgHTML($emailBody);
- $mail->IsHTML(true);
- if(!$mail->Send()) {
- $error_message = 'Problem in Sending Password Recovery Email';
- } else {
- $success_message = 'Please check your email to reset password!';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement