Mantis 1.1.2 Problem with PHPMailer 2.2.1 and Gmail SMTP

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
jjjesus
Posts: 3
Joined: 25 Jul 2008, 18:54

Mantis 1.1.2 Problem with PHPMailer 2.2.1 and Gmail SMTP

Post by jjjesus »

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
jjjesus
Posts: 3
Joined: 25 Jul 2008, 18:54

Re: Mantis 1.1.2 Problem with PHPMailer 2.2.1 and Gmail SMTP

Post by jjjesus »

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
Post Reply