forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 ecards & email => Topic started by: longcannon on December 31, 2008, 10:12:24 am

Title: Gmail as SMTP Server?
Post by: longcannon on December 31, 2008, 10:12:24 am
I can use Gmail as SMTP server to send emails for verification purpose in vBulletine, BBPHP forum and Gallery2 (need some modification in Gallery2)
All you need is a Gmail account and OpenSSL enabled in PHP as Gmail SMTP server need SSL security connection and at port 465.
However, this seems NOT possible in Coppermine.
Can anyone had MOD method to enable Gmail SMTP in Coppermine?
Or would this function be available in the next version of Coppermine?

Thanks.
Title: Re: Gmail as SMTP Server?
Post by: Nibbler on December 31, 2008, 04:04:13 pm
Replace your copy of include/mailer.inc.php with the attached version. Then set the SMTP server to ssl://smtp.gmail.com:465 in Coppermine config.

Please report back.
Title: Re: Gmail as SMTP Server?
Post by: longcannon on January 01, 2009, 02:25:13 pm
Dear Nibbler,

It works well.

Good Job! Thanks a lot.

Title: Re: Gmail as SMTP Server?
Post by: DugDog on February 13, 2009, 05:04:29 am
Hello,

I followed the instruction for using Gmail listed above.  I have Gmail working with PHPBB and the instructions are very similar.

I have upgraded to the newest version of Coppermine 1.4.20 (stable).  I tried the attachment file (mailer.inc.php) in this thread and still no luck...since the file in this thread didn't work, I changed it back to 1.4.20 (stable)...the look very similar, and they both list 1.4.20 (stable) in the comments.

Is there a log file that records email actions?  I tried to log all activity, and it doesn't seem to log email activity.

I have this CM running on my LAN, running XP Pro with WAMP 2.  All functions of CM work fine except for the email function.  On the same Server, I tried using Outlook Express with the same Gmail settings...it works fine.  The reason I tested Outlook express is I wanted to take another application besides CM and verify email works.

Anyone have any ideas for running CM on a Windows XP box and using any other email options besides gmail?

Thanks,

DD
Title: Re: Gmail as SMTP Server?
Post by: Joachim Müller on February 13, 2009, 09:03:27 am
On the same Server, I tried using Outlook Express with the same Gmail settings...it works fine. 
Outlook is an email client, not a server, so this simply doesn't apply. You need a SMTP server on your setup or you need someone to relay for you. Self -hosting is not recommended at all. We can not advice you on webhosting issues, that's beyond the scope of this board.
Title: Re: Gmail as SMTP Server?
Post by: Nibbler on February 13, 2009, 12:16:21 pm
You can enbale debug in that file.

Code: [Select]
var $SMTPDebug    = false;

Change to true. It will just display the debug messages on the page.
Title: Re: Gmail as SMTP Server?
Post by: dgitan on February 13, 2009, 01:35:15 pm
Hello, I have the same trouble.
I change the mailer.inc.php with the new one, and I set the ssl://gmail server.
I put the debug to true, and I receive this error :
SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
I try to change the timout value, without success.

Any idea ??

Thanks
Title: Re: Gmail as SMTP Server?
Post by: Joachim Müller on February 17, 2009, 09:14:02 am
You already have a thread of your own (http://forum.coppermine-gallery.net/index.php/topic,58031.0.html) - no need to try to hijack another one.