PHPMailer nie działa z smtp.gmail.com
Bug #950158 reported by
Seba Gałowski
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Vallheru |
Fix Released
|
High
|
Bartek Jasicki |
Bug Description
Błąd:
---
Wiadomość nie została wysłana. Błąd:
Błąd SMTP: Nie można przeprowadzić autentykacji.
Konfiguracja:
---
<?php
require_
$mail = new PHPMailer();
$mail -> PluginDir = "./mailer/";
$mail -> SetLanguage("pl", "./mailer/
$mail -> CharSet = "utf-8";
$mail -> Sender = $gamemail;
$mail -> IsSMTP();
$mail -> Host = "smtp.gmail.com";
$mail -> SMTPAuth = true;
$mail -> Username = "<email address hidden>";
$mail -> Password = "haslo";
$mail -> From = $gamemail;
$mail -> FromName = $gamename;
$mail -> AddAddress(
$mail -> WordWrap = 50;
$mail -> Subject = $subject;
$mail -> Body = $message;
?>
Changed in vallheru: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Najprostsze obejście tego problemu to dodać dwie linie do pliku konfiguracyjnego PHPMailera. Powinno pomóc. Poprawka jest już dodana do repozytorium
$mail -> SMTPSecure = true;
$mail -> Port = 465;