L’option « smtpSecure » est indispensable pour les hosts SMTP demandant une authentification SSL (ex:gmail/smtp.gmail.com) Voici un exemple de configuration qui pourrait aller:
[mailer] webmasterEmail="webmaster@domaine.com" webmasterName=webmaster ; how to send mail : "mail" (mail()), "sendmail" (call sendmail), or "smtp" (send directly to a smtp) mailerType= ; Sets the hostname to use in Message-Id and Received headers ; and as default HELO string. If empty, the value returned ; by SERVER_NAME is used or 'localhost.localdomain'. hostname= sendmailPath="/usr/sbin/sendmail" ; if mailer = smtp , fill the following parameters ; SMTP hosts. All hosts must be separated by a semicolon : "smtp1.example.com:25;smtp2.example.com" smtpHost= ; default SMTP server port smtpPort= ; secured connection or not. possible values: "", "ssl", "tls" smtpSecure= ; SMTP HELO of the message (Default is hostname) smtpHelo= ; SMTP authentication smtpAuth=on smtpUsername="webmaster@domaine.com" smtpPassword= ; SMTP server timeout in seconds smtpTimeout=30
