coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 ecards & email => Topic started by: X-Centric on December 06, 2006, 09:09:29 PM

Title: Registration Email Variable Is Not Passed To The SMTP Server
Post by: X-Centric on December 06, 2006, 09:09:29 PM
I have an updated install from 1.3.2 to 1.4.10. Everything went fine. I also run my own SMTP Server. When registering accounts the email variable in the registration webform doesnt seem to get to the smtp server. Here is a log showing that the RCPT TO is null "<>". The first recipient is the Gallery Admin email. The second recipient is supposed to be the registered users email being relayed. Can anyone shed some light on the matter?


I replaced the actual data for protection.

XX.XX.XX.XX    [0498] 13:40:28 Connected
XX.XX.XX.XX    [0498] 13:40:28 >>> 220-mail.xxxxxxxxx.com ESMTP GateMan Mail Server v2.11; Wed, 06 Dec 2006 13:40:28 -0600
XX.XX.XX.XX    [0498] 13:40:28 <<< EHLO www.xxxxxxxxxx.com
XX.XX.XX.XX    [0498] 13:40:28 >>> 250-mail.xxxxxxxxx.com Hello www.xxxxxxxxxx.com [71.244.50.59], pleased to meet you.
XX.XX.XX.XX    [0498] 13:40:28 <<< AUTH LOGIN
XX.XX.XX.XX    [0498] 13:40:28 >>> 334 VXNlcm5hbWU6
XX.XX.XX.XX    [0498] 13:40:28 <<< Y29wcGVybWluZUBhZ2VzdXBwbHkuY29t
XX.XX.XX.XX    [0498] 13:40:28 >>> 334 UGFzc3dvcmQ6
XX.XX.XX.XX    [0498] 13:40:28 <<< Y29wcGVybWluZQ==
XX.XX.XX.XX    [0498] 13:40:28 >>> 235 2.0.0 Authentication successful
XX.XX.XX.XX    [0498] 13:40:28 <<< MAIL FROM:<xxxx@xxxxxxxxx.com>
XX.XX.XX.XX    [0498] 13:40:28 >>> 250 2.1.0 <xxxx@xxxxxxxxx.com>... Sender ok
XX.XX.XX.XX    [0498] 13:40:28 <<< RCPT TO:<xxxx@xxxxxxxxx.com>
XX.XX.XX.XX    [0498] 13:40:28 >>> 250 2.1.5 <xxxx@xxxxxxxxx.com>... Recipient ok
XX.XX.XX.XX    [0498] 13:40:29 <<< RCPT TO:<>
XX.XX.XX.XX    [0498] 13:40:29 >>> 550 5.1.1 <> User unknown; rejecting
XX.XX.XX.XX    [0498] 13:40:29 <<< RSET
XX.XX.XX.XX    [0498] 13:40:29 >>> 250 2.0.0 Reset state
SYSTEM          [0498] 13:40:29 Disconnected
Title: Re: Registration Email Variable Is Not Passed To The SMTP Server
Post by: Sami on December 06, 2006, 09:21:47 PM
Re-uploading include/mailer.inc.php may help you
Title: Re: Registration Email Variable Is Not Passed To The SMTP Server
Post by: X-Centric on December 06, 2006, 09:30:36 PM
I wish it were that simple. I'm at the physical machine. No uploading or downloading necessary.
Title: Re: Registration Email Variable Is Not Passed To The SMTP Server
Post by: Nibbler on December 06, 2006, 10:27:35 PM
Can you try a quick code change, include/mailer.inc.php

if (isset($row['user_email'])) $to[] = $row['user_email'];

change that to read:

if (!empty($row['user_email'])) $to[] = $row['user_email'];
Title: Re: Registration Email Variable Is Not Passed To The SMTP Server
Post by: X-Centric on December 06, 2006, 10:42:26 PM
Nice catch Nibbler. ;D That did the trick. I appreciate your help. This thread is solved.
Title: Re: Registration Email Variable Is Not Passed To The SMTP Server
Post by: Nibbler on December 06, 2006, 11:41:33 PM
Great, fix applied to svn.
Title: Re: Registration Email Variable Is Not Passed To The SMTP Server
Post by: oboi on February 06, 2007, 08:34:38 PM
I had an issue where the system suddenly stopped sending emails to the admin. Poked around in the forums, found this, it worked!!!

Dig this community - thanks!
Title: Re: Registration Email Variable Is Not Passed To The SMTP Server
Post by: wads24 on April 03, 2007, 10:57:35 PM
This fix worked for me... I did have to take out the SMTP settings in the config for it to work... thanks!