Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail = new PHPMailer();
- $mail->IsSMTP(); // enable SMTP
- $mail->SMTPDebug = 1; only
- $mail->SMTPAuth = true; // authentication enabled
- $mail->SMTPSecure = "ssl";
- $mail->Host = "smtp.gmail.com";
- $mail->Port = 465;
- $mail->IsHTML(true);
- $mail->Username = "me@gmail.com";
- $mail->Password = "password";
- $mail->SetFrom("me@gmail.com");
- $mail->Subject = "test subject";
- $mail->Body = "test body";
- $mail->AddAddress("abc@foo.com");
- $mail->Send();
Add Comment
Please, Sign In to add comment