Problems with sendmail

hi all,

---

first of all: sorry if "Bug Discussion" is the wrong section to post this in – i'm slightly confused wether it belongs here or into "usage support" or even "plugins". as the only thing "not working" is zenphoto returning an error upon user-email-verification, but all necessary emails are sent and the user is verified and able to log in, the "bug discussion"-section might be the right place?

---

we experienced problems with a zenphoto 1.2.9 install, using the register_user plugin and zenphoto_sendmail:

* email with the verification-link is sent out
* when clicking the verification link, the user lands on the "register"-page, but an error-message "registration failed" is displayed along with the further info that "zenphoto_sendmail failed to send Zenphoto-Galerie-Registrierung to one or more recipients."

The strange things are

* it _certainly_ worked before (so i assume something must have changed on the host (1&1/1and1, btw.))
* the user-verification-link-email is sent (definitively)
* the admin-"new user has just registered"-email is sent (definitively)
* the user IS VERIFIED and can log in after the "failed" verification-step of the registration

As said we're using sendmail (which was working perfectly before), but I also tried switching to the PHPMailer-plugin – sadly just to receive another error-message "Language string failed to load: execute/usr/sbin/sendmail".

More info:

* we successfully upgraded to the latest zenphoto (hoping that would maybe fix the error ;))
* we have to use php.ini to set the "mbstring.internal_encoding" (i just put one into the "zp-extensions"-folder – just in case ;) – but it didnt change any of the behaviour described above)
* phpinfo() says smtp_path is "/usr/sbin/sendmail -t -i" and smtp_port is 25, "SMTP" says "localhost"

I would really appreciate if someone responds – I don't have a clue how to fix this.

Thanks in advance,
Christian

Comments

  • First, the PHPMailer-plugin issue has been resolved in the nightly builds. But that you are getting the error also means that PHPMailer was trying to report an error.

    This problem sounds familiar. (Sorry, I do not have access to the change log at the moment to check.) If you have the possibility of a test installation please see if it is corrected in the nightly builds.
  • Thanks a lot sbillard, I'll give the nightly a shot immediately and report back.
  • One other thing to check. If you have the option set to notify administrators of a registration and you have no administrators which have e-mail addresses you will get this error as there is no where to send the registration notification.
  • Thanks again sbillard – stupid as I am I updated the live system to the nightly build (I know, … I know). Didn't look so good (zenpage-pages wouldn't display, the verify-user-email-link would point to the wrong URL and so on), so I decided to downgrade and restore the database from the backup I had made … which brings us to my next thread in this forum: http://www.zenphoto.org/support/topic.php?id=8144 – at this point I do not even care about the sendmail-issue anymore ;):/:(.
  • Another small update: I sat down and installed a fresh 1.3.1.2 on the live server (of course! ;)) – as restoring from DB didn't work before, I just reactivated my theme and plugins and adjusted their settings; most importantly zenpage and the register_user and user_loginout-settings. As of now, only the main zenphoto admin is in the DB – and voila, registering and verifying as well as sending an email to (the one) admin works flawless. Oh my ;).

    So I guess it must have been as you suggested – some of my admin users must have been created without supplying an email-adress (it must be possible if sbillard says so, i haven't checked yet).
  • FINAL UPDATE: I can now confirm there were indeed administrators in the DB that had no email-adress. So sbillards assumption in his last post above were exactly on point. Hope this helps someone in the future.
Sign In or Register to comment.