Page 1 of 1

Yahoo! SMTP server

Posted: 12 Apr 2007, 07:37
by mdrfkrjrm
i'm having trouble setting up the e-mail notification feature in mantis. i have the error: SYSTEM WARNING: fsockopen(): unable to connect to smtp.bizmail.yahoo.com:25

does anyone here use yahoo's smtp server for mantis?

below is what i included in the config_inc.php
$g_phpMailer_method = 2;
$g_smtp_host = 'smtp.bizmail.yahoo.com';
$g_smtp_username = 'username@companyname.com';
$g_smtp_password = 'notreallymypassword';

we're using the version 1.1.0a2.. and the default smtp port (25)

Ramon Maliwanag

Posted: 12 Apr 2007, 08:06
by mdrfkrjrm
nevermind.. i changed the smtp port to 587 and it worked.. :lol:

here is where i found the solution..

Posted: 13 Jun 2007, 14:20
by danieljanzon
>nevermind.. i changed the smtp port to 587 and it worked.. Laughing

But *where* did you make the change? Is it ok to write as below? I don't think so, but the reason my mailing doesn't work can very well be something else.

$g_smtp_host= 'mail.blablabla.com:587';

Posted: 14 Jun 2007, 04:59
by deboutv
Yes, you need to add the port at the end of the host name: http://www.mantisbt.org/bugs/view.php?id=8006

Posted: 17 Jul 2007, 07:03
by mdrfkrjrm
i changed the value of $smtp_port from 25 to 587
of class.smtp.php in /mantis/core/phpmailer

adding the port to $g_smtp_host = 'smtp.bizmail.yahoo.com:587'; didn't work for me either..

Re: Yahoo! SMTP server

Posted: 15 Apr 2009, 11:50
by kooldude_33
hi All,
I'm having trouble setting up the e-mail notification feature in mantis with Gmail. The changes I made are as follows:

1. In 'C:\Inetpub\wwwroot\Mantis\core\phpmailer\' I changed the following in the file called 'class.smtp'.

class SMTP
{
/**
* SMTP server port
* @var int
*/
var $SMTP_PORT = 465;

2. In 'C:\Windows\' I changed the following in the 'php' file.

[mail function]
; For Win32 only.
SMTP = smtp.gmail.com
smtp_port = 465

3. In 'C:\Inetpub\wwwroot\Mantis\' I changed the following in the 'config_defaults_inc' file.

# select the method to mail by:
# 0 - mail()
# 1 - sendmail
# 2 - SMTP
$g_phpMailer_method = 2;

$g_smtp_host = 'smtp.gmail.com:465';

$g_smtp_username = 'my mail id';
$g_smtp_password = 'my mail password';

When i click on 'reset password' button, its taking some time to process and a blank page is being displayed with the url 'http://localhost/mantis/manage_user_page.php' in the address bar.


So i changed the smtp name to localhost and the port to 25. the changes are as follows:

class SMTP
{
/**
* SMTP server port
* @var int
*/
var $SMTP_PORT = 25;

2. In 'C:\Windows\' I changed the following in the 'php' file.

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

3. In 'C:\Inetpub\wwwroot\Mantis\' I changed the following in the 'config_defaults_inc' file.

# select the method to mail by:
# 0 - mail()
# 1 - sendmail
# 2 - SMTP
$g_phpMailer_method = 2;

$g_smtp_host = 'localhost:25';

$g_smtp_username = 'my mail id';
$g_smtp_password = 'my mail password';

When i click on 'reset password' button, now its giving the message 'A confirmation mail has been sent to the selected user's e-mail address. Using this, the user will be able to change their password' and it displays the Manage users page. But I'm not getting any mails to the e-mails i mentioned while creating users.

The OS and version details are as follows:

OS: XP
Mantis version: 1.1.6
Php version: PHP 5.2 and later
MySQL version: 5.0.


It would be very grateful if any one can help resolving this issue.