Problème envoi email
Bonjour,
Mon site est hébergé chez LWS et impossible de faire fonctionner l'envoi d'email :
Fatal error: Uncaught PHPMailer\PHPMailer\Exception: SMTP Error: Could not authenticate. in /htdocs/doodle/vendor/phpmailer/phpmailer/src/PHPMailer.php:1911 Stack trace: #0 /htdocs/doodle/vendor/phpmailer/phpmailer/src/PHPMailer.php(1725): PHPMailer\PHPMailer\PHPMailer->smtpConnect(Array) #1 /htdocs/doodle/vendor/phpmailer/phpmailer/src/PHPMailer.php(1481): PHPMailer\PHPMailer\PHPMailer->smtpSend('Date: Fri, 12 A...', 'This is a multi...') #2 /htdocs/doodle/vendor/phpmailer/phpmailer/src/PHPMailer.php(1320): PHPMailer\PHPMailer\PHPMailer->postSend() #3 /htdocs/doodle/app/classes/Framadate/Services/MailService.php(58): PHPMailer\PHPMailer\PHPMailer->send() #4 /htdocs/doodle/create_classic_poll.php(108): Framadate\Services\MailService->send('*xxx*@f...', '[Doodle][R\xC3\xA9ser...', 'Ce message ne d...') #5 {main} thrown in /htdocs/doodle/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 1911
J'ai pourtant bien configuré les paramètres SMTP.
Test avec SMTP Google :
'smtp_options' => [
'host' => 'smtp.google.com', // SMTP server (you could add many servers (main and backup for example) : use ";" like separator
'auth' => true, // Enable SMTP authentication
'username' => 'EMAIL', // SMTP username
'password' => 'PWD', // SMTP password
'secure' => 'ssl', // Enable encryption (false, tls or ssl)
'port' => 465,
],
Test avec le SMTP LWS :
'smtp_options' => [
'host' => 'mail33.lwspanel.com', // SMTP server (you could add many servers (main and backup for example) : use ";" like separator
'auth' => true, // Enable SMTP authentication
'username' => 'EMAIL', // SMTP username
'password' => 'PWS', // SMTP password
'secure' => 'ssl', // Enable encryption (false, tls or ssl)
'port' => 993, // TCP port to connect to
],
ou
'smtp_options' => [
'host' => 'mail33.lwspanel.com', // SMTP server (you could add many servers (main and backup for example) : use ";" like separator
'auth' => true, // Enable SMTP authentication
'username' => 'EMAIL', // SMTP username
'password' => 'PWS', // SMTP password
'secure' => 'false', // Enable encryption (false, tls or ssl)
'port' => 993, // TCP port to connect to
],
Rien n'y fait, même résultat :-(
Est-il possible d'utiliser PHP mail ? Ou alors il y a un truc qui m'échappe mais je ne vois vraiment pas où :-(
Merci par avance pour votre aide