Hi,
Because I have PHP 5, I installed PHPMailer 2.2.1.
I used the PHPMailer gmail example PHP to test that Gmail works with PHPMailer. It does.
The Mantis integration with PHPMailer 2.2.1 seems broken, however; sending an email using Reset User gives a message:
SYSTEM WARNING: fsockopen() expects parameter 2 to be long, string given
Parameter 2 is the port number, which for Gmail ought to be 587. It seems that Mantis must instead be giving some kind of string to PHPMailer.
Thanks for any help.
--John
Mantis 1.1.2 Problem with PHPMailer 2.2.1 and Gmail SMTP
Moderators: Developer, Contributor
Re: Mantis 1.1.2 Problem with PHPMailer 2.2.1 and Gmail SMTP
My fault. I had specified prefixed tls:// onto the host name:
$g_smtp_host = 'tls://smtp.gmail.com'; // BAD
$g_smtp_host = 'smtp.gmail.com'; // CORRECT
$g_smtp_host = 'tls://smtp.gmail.com'; // BAD
$g_smtp_host = 'smtp.gmail.com'; // CORRECT