User Registration not sending email

tsorf33

Joined: 2003-10-31
Posts: 20
Posted: Thu, 2005-02-17 15:05

I am trying to get email working with the registration feature of Gallery2. Unfortunately, when a user tries to register, it reports successful, but no mail ever arrives. I even tried setting the SMTP host so that it would use SMTP, but that doesn't seem to work either. I also set a variable in php.ini that I thought would work, but it does not. Can anyone offer some insight into this problem?

Thanks!

----

Gallery URL (optional):
Gallery version:
Webserver (with version):
Datatabase (with version):
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:
Web browser/version:

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-02-17 15:31

do you use other applications on the same computer that send email via php? (i.e. phpbb)
what email config do you use in G2? (don't need to post the email username/password).

 
tsorf33

Joined: 2003-10-31
Posts: 20
Posted: Thu, 2005-02-17 15:38

Yes, I have a CMS running that sends mail just fine. I also wrote a small php script that uses the mail() function and it works just fine. At first, I didn't have ANY mail configuration in G2 (so that it would use the mail() function -- which works), but that didn't work so I just set the 'Server' and 'From Address'. Still nothing. Nothing shows up in /var/log/maillog (as if nothing has happened).

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-02-17 21:00

sorry, but i have to ask the obvious question since you didn't mention it.. what is the confirmation policy you have selected in Registration site admin?
what about sending emails to site admins? does that work?
turn on buffered debug output in config.php.. you see a "mail(" debug line if it called the routine to send email.. and if it gets an error you'll see "Could not send mail"... which of these do you see, if any?