Advertisement
Guest User

Untitled

a guest
Apr 30th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. include("PHPMailer/class.phpmailer.php");
  2. require('phpmailer/PHPMailerAutoload.php');
  3. $mail = new PHPMailer();
  4. $mail->IsSMTP();
  5. $mail->SMTPDebug = 1;
  6. $mail->SMTPAuth = true;
  7. $mail -> SMTPSecure = "ssl";
  8. $mail->Host = "smtp.gmail.com";
  9. $mail->Port = 587;
  10. $mail->Username = 'emailusado@gmail.com';
  11. $mail->Password = 'senhadoemail';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement