Hi,
just an information from my web-provider who fixed the authentication problem (finally !) with secured connection :
He wrote me about those line in the lm_prefs :
==========
function authmail( $to, $subject, $body, $from ) {
global $smtp_host, $smtp_username, $smtp_password;
require_once "Mail.php";
$headers = array ( 'From' => $from,
'To' => $to,
'Subject' => $subject );
$host = "
host address";
$smtpPort = 25;
$username = "email address";
$password = "password";
$mail = $smtp->send( $to, $headers, $body );
===============
You’re calling the smtp before define it. I added this line to your code :
$smtp = Mail::factory('smtp', array ('host' => $host, 'port' => $smtpPort, 'auth' => true, 'username' => $username, 'password' => $password));
This fixed my problem.