coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: SysAdm on January 02, 2004, 01:36:22 AM

Title: Email issue... SMTP
Post by: SysAdm on January 02, 2004, 01:36:22 AM
I have other PHP apps running on Apache... and I have no problem sending email using the PHP mail command from them, but for some reason Copermine will not send an email when registering a new user... :cry:

I have read through this board on other users issues with SMTP and I'm not using SMTP... but just to make you feel better I added the correct variable information for my SMTP and it still does not work....

I have the actual email.php data from one of my other PHP apps that work if you would like to see it...

(This emailer works fine for my other PHP apps)

http://centralsource.com/emailer.txt

I really like the look and feel of the Coppermine app, I just would like it to work... :wink:

Michael
Title: Oh yea...
Post by: SysAdm on January 02, 2004, 01:56:36 AM
Also... I just turned on DEBUG and this what I get when I try to register a new user...

Notice: Undefined variable: cc in /include/mailer.inc.php on line 127
Notice: Undefined variable: bcc in /include/mailer.inc.php on line 128
Notice: Undefined variable: server_response in /include/mailer.inc.php on line 66
Notice: Undefined variable: server_response in /include/mailer.inc.php on line 66
Notice: Undefined variable: server_response in /include/mailer.inc.php on line 66
Notice: Undefined variable: server_response in /include/mailer.inc.php on line 66
Notice: Undefined variable: server_response in /include/mailer.inc.php on line 66
Notice: Undefined variable: server_response in /include/mailer.inc.php on line 66

Thanks in advance....
Title: Email issue... SMTP
Post by: Joachim Müller on January 02, 2004, 11:24:17 AM
It's just a notice, telling you that a variable is being used without being defined before. It's safe to ignore, merely a cosmetical issue, telling the developers what to fix for the next version...
Debug_mode should only be run when you have problems, if you need to run it all the time you should change the error reporting level.

GauGau
Title: Forget the debug results... the main issue is no email
Post by: SysAdm on January 02, 2004, 03:18:35 PM
I only turned on the debug because I was having a problem... it won't send emails when a new user registers...  

I posted a working one from another site I have in hopes somebody could direct me why Coppermine won't email... (in my first post)

I figured the variable errors had nothing to do with the main email function, but I'm not getting any errors otherwise, just no email.....

____SysAdm
Title: Email issue... SMTP
Post by: Joachim Müller on January 02, 2004, 05:49:15 PM
as stated before: coppermine doesn't come with it's own email function, but uses the smtp that is being built into your webserver. Turning on debug mode won't help, you'll have to figure out how to get smtp working on your server. Are you self-hosted?

GauGau
Title: Coppermine's emailer.php file...
Post by: SysAdm on January 02, 2004, 06:15:23 PM
What if your server doesn't support SMTP?  I looked at the emailer.php file that comes with Coppermine and I thought if SMTP wasn't filled in (availavble) that it uses PHP's built in email?  

I have this running on a Unix box... I should be able to use sendmail?

___SysAdm
Title: Email issue... SMTP
Post by: Joachim Müller on January 02, 2004, 07:45:13 PM
yes, that's expected behaviour (leave $CONFIG['smtp_host'] = '';
$CONFIG['smtp_username'] = '';
$CONFIG['smtp_password'] = '';
in include/mailer.inc.php blank (as it is by default).

GauGau
Title: Fixed now...
Post by: SysAdm on January 02, 2004, 09:41:40 PM
It was a problem with my server... got it fixed...

Thanks...
_______SysAdm