Sending emails with SMTP and Gmail

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
syrinx2004
Posts: 1
Joined: 24 Jul 2006, 15:46

Sending emails with SMTP and Gmail

Post by syrinx2004 »

I am trying to setup MANTIS to allow emails to be sent through SMTP using stmp.gmail.com. I haven't been succesful so far. :-( Although I am able to ping stmp.gmail.com on the machine where MANTIS is installed, it seems that it cannot be accessed by MANTIS. Can anyone help???

This is my configuration:

<?php
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'mantis';
$g_db_username = 'root';
$g_db_password = 'mysqlpassword';
$g_phpMailer_method = 2;
$g_validate_email = 'ON';
$g_smtp_host = 'stmp.gmail.com';
$g_smtp_username = 'myusername';
$g_smtp_password = 'mypassword';
?>


This is the error I get :

Testing Mail -

SYSTEM WARNING: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Hôte inconnu.

SYSTEM WARNING: fsockopen() [function.fsockopen]: unable to connect to stmp.google.com:25 (Unknown error)
PROBLEMS SENDING MAIL TO: administrator@example.com
Mailer Error: SMTP Error: Could not connect to SMTP host.


Thanks!
polarbear
Posts: 11
Joined: 18 Apr 2007, 09:52
Contact:

Post by polarbear »

Am also experiencing a similar kind of issue.Can anybody update me on how to overcome this problem?
ed
Posts: 143
Joined: 14 Feb 2005, 02:04
Location: Sydney, Australia

Post by ed »

For a specific gmail issue, I would assume that you need to change $SMTP_PORT in core/phpmailer/class.smtp.php to whatever port they have told you to use rather than port 25.
Post Reply