Server exchange setting SMTP OVH

Hello,
I installed the latest version of phplist on my domain and using my SMTP works well.
Now I would like to configure to send the newsletter an exchange SMTP of OVH.
I set this:
define(‘PHPMAILERHOST’, ‘ex.mail.ovh.net’);
$phpmailer_smtpuser = ‘myuser’;
$phpmailer_smtppassword = ‘mypassword’;
$phpmailer_smtpport = ‘587’;
$phpmailer_smtpsecure = ‘tls’;

With the same data with phpmailer and a test script sending works.
I can not understand what is wrong setting of phplist.
thank you
federico

no one can help me?
thank you

@federico337 You can enable smtp debugging in your config.php file. Look in config_extended.php for the line to use, then copy to config.php.
If you then send a test message there will be some debug output that might show what is wrong.

thanks for the reply.

setting the debugging and the result is this:
CLIENT -> SERVER: EHLO xxxxxx.com
CLIENT -> SERVER: STARTTLS
CLIENT -> SERVER: EHLO xxxxxxx.com
CLIENT -> SERVER: AUTH LOGIN
CLIENT -> SERVER: aW5mb0BsYWJiYXRlaXRhbGlhLmNvbQ ==
CLIENT -> SERVER: S0pkaGR1eTcyN2pTZGs5ODNk
SMTP ERROR: Password command failed: 535 5.7.3 Authentication unsuccessful
SMTP Error: Could not authenticate.
CLIENT -> SERVER: QUIT
SMTP connect () failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

strange that there are these errors because using directly phpmailer works.
what am I doing wrong?

from the OVH guide:
“Server: SMTP”:
Server Host: ex.mail.ovh.net.
Port: 587.
Encryption: STARTTLS.
Authentication: normal password.
User: your email address

setting:
define(‘PHPMAILERPORT’,587);
define(“PHPMAILER_SECURE”,‘tls’);

the error is:
SMTP ERROR: DATA END command failed: 550 5.7.60 SMTP; Client does not have permissions to send as this sender
SMTP Error: data not accepted.
CLIENT -> SERVER: QUIT

From your ealier posts I thought that these were the settings you were using when you got “Authentication unsuccessful”.

Client does not have permissions to send as this sender

Do you have a valid (for OVH) email address for the $message_enveloper setting in your config file?
Try enabling debug in your test program to see what the difference in the output is.

doing a text with phpmailer it all works:

date_default_timezone_set('Etc/UTC');
require '../PHPMailerAutoload.php';
$mail = new PHPMailer;
$mail->isSMTP();
//Enable SMTP debugging
// 0 = off (for production use)
// 1 = client messages
// 2 = client and server messages
$mail->SMTPDebug = 2;
$mail->Debugoutput = 'html';
$mail->Host = "ex.mail.ovh.net";
$mail->Port = 587;
$mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true;
$mail->Username = "info@xxxxxxx.com";
$mail->Password = "yyyyyy";
$mail->setFrom('info@xxxxxxx.com', 'test');
$mail->addReplyTo('info@aaaaaaa.com', 'reply');
$mail->addAddress('test@wwwww.com', 'XX YYY');
$mail->Subject = 'PHPMailer SMTP test';
$mail->AltBody = 'This is a plain-text message body';

if (!$mail->send()) {
    echo "Mailer Error: " . $mail->ErrorInfo;
} else {
    echo "Message sent!";
}

I found the problem.
of the SMTP configuration information is correct.
the problem is OVH does not allow me to send with the email XXX@emai.com and autentification with email YYYY@email.com
Thanks for your help
regards
federico