Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Registration Email Variable Is Not Passed To The SMTP Server  (Read 8106 times)

0 Members and 1 Guest are viewing this topic.

X-Centric

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Registration Email Variable Is Not Passed To The SMTP Server
« 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
« Last Edit: December 06, 2006, 10:50:09 pm by Sami »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Registration Email Variable Is Not Passed To The SMTP Server
« Reply #1 on: December 06, 2006, 09:21:47 pm »

Re-uploading include/mailer.inc.php may help you
Logged
‍I don't answer to PM with support question
Please post your issue to related board

X-Centric

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Registration Email Variable Is Not Passed To The SMTP Server
« Reply #2 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.
Logged

Nibbler

  • Guest
Re: Registration Email Variable Is Not Passed To The SMTP Server
« Reply #3 on: December 06, 2006, 10:27:35 pm »

Can you try a quick code change, include/mailer.inc.php

Code: [Select]
if (isset($row['user_email'])) $to[] = $row['user_email'];
change that to read:

Code: [Select]
if (!empty($row['user_email'])) $to[] = $row['user_email'];
Logged

X-Centric

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Registration Email Variable Is Not Passed To The SMTP Server
« Reply #4 on: December 06, 2006, 10:42:26 pm »

Nice catch Nibbler. ;D That did the trick. I appreciate your help. This thread is solved.
Logged

Nibbler

  • Guest
Re: Registration Email Variable Is Not Passed To The SMTP Server
« Reply #5 on: December 06, 2006, 11:41:33 pm »

Great, fix applied to svn.
Logged

oboi

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Registration Email Variable Is Not Passed To The SMTP Server
« Reply #6 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!
Logged

wads24

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Registration Email Variable Is Not Passed To The SMTP Server
« Reply #7 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!
Logged
Pages: [1]   Go Up
 

Page created in 0.036 seconds with 19 queries.