Joomla! Discussion Forums



It is currently Mon Nov 23, 2009 9:08 pm (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
Posted: Tue May 12, 2009 8:10 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu May 07, 2009 4:44 am
Posts: 10
Hi, I have spent 8 hours trying to send an email from my site using the google apps smtp server. but get:
"SMTP Error! Could not connect to SMTP host"

I see many forum posts about this topic, I have read and tried everything I could find and still have this problem, hence the reason Im finally begging for help.

System Specs:
joomla 1.5.9
PHP Version: 5.2.9-1
Windows 2003 server (yes What the? I know)
IIS-6
I do not have an SSL certificate installed on this server ( not sure if this makes a diff)

These are the things I have already done:

Modified php.ini to enable openssl
Downloaded and replaced smtp.php and phpmailer.php in the libraries\phpmailer directory with the respective php files that enable ssl connection within joomla.

I have a perfectly working google apps account, tested and has pop and imap enabled.

I have tried many different edits , port 465, port 587, to no avail.
Just to make sure, all ports for tcp/udp 465 and 587 are opened in windows 2003 firewall.

Global config looks like this:
Mailer: SMTP Server
Mail From: info@<mydomain>.com
From Name: Me
Sendmail Path:
SMTP Authentification : Yes
SMTP Username: info@<mydomain>.com
SMTP Password: <mypassword>
SMTP HOST: ssl://smtp.gmail.com:465

I am quite new to PHP so I tried other tutorials on just using PHP sendmail scripts to attempt to send email through gmail. Same error comes up.

If anyone could help this would be very very very much appreciated as Ive got tired eyes and have no idea how to get this baby going.

Cheers : Nigel D


Top
  E-mail  
 
Posted: Wed Jul 22, 2009 5:10 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Jul 24, 2007 8:53 am
Posts: 8
You could try using port 587 which is the one Google like!

This might do it but I am just setting it up for myself.


Top
  E-mail  
 
Posted: Tue Sep 08, 2009 5:41 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu May 07, 2009 4:44 am
Posts: 10
Solved:

Here is what I did. OpenSSL even though it was enabled in php.ini in my c:\windows directory, it was missing 2 key files that are required for openSSL to work, which took forever to figure out and I had tried everything else.

I copied "libeay32.dll" and "ssleay32.dll" to the C:\windows\system32\ directory and wahlaa, finally after 3 days of going insane it works.

In this situation I also upgraded the new Joomla 1.5.13 version as this has much improved support for Gmail.

I hope this helps someone.


Top
  E-mail  
 
Posted: Sun Nov 08, 2009 7:35 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Oct 11, 2009 11:41 am
Posts: 5
I found this:

look 4 file:
in Joomla 1.5: libraries\phpmailer\phpmailer.php
in Joomla 1.0: includes\phpmailer\class.phpmailer.php

open 4 edit, look 4 code:

if(strstr($hosts[$index], ":"))
list($host, $port) = explode(":", $hosts[$index]);
else
{
$host = $hosts[$index];
$port = $this->Port;
}

change it to:

if (preg_match('#(([a-z]+://)?[^:]+):(\d+)#i', $hosts[$index], $match))
{
$host = $match[1];
$port = $match[3];
}
else
{
$host = $hosts[$index];
$port = $this->Port;
}

After that go to Joomla CP into mail, use this parameters:
send mail - SMTP server
use SMTP-authorization - YES
SMTP login - YOURLOGIN@YOURDOMAIN
SMTP password - your password
SMTP server adress: ssl://smtp.gmail.com:465


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

Quick reply

 



Who is online

Users browsing this forum: alsunna, asifraza, bobtem, brduran, brucewhealton, compusolver, daleegan1, dbdws, forzafere, imanickam, lancert, laurfaery, lmchaelichkatel, matteoucla, mehwish_ali, midlifedesign, MSN [Bot], plinks, Rgriffeth, samdk, SFGolfer, the apprentice and 140 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group