issue with plugin register-user

vincent3569 Member, Translator
Hi,

I use zenphoto 1.4.1.1 [7662] and have some test with the register-user plugin.
The creation of a new user with register-user is ok, but the new user don't get a email, the administrator don't get a email.

I have found this topic on the same subject :
http://www.zenphoto.org/support/topic.php?id=8358#post-49376

This is a known issue (I dont'use mod_rewrite) ?

Comments

  • do you have the email_newueser plugin enabled?
  • I hardly think that a reference to a year 2007 thread represents something that is a known issue, specially since the thread says the problem is fixed.

    There are quite a number of reasons why you would not get an e-mail, not the least of which is that your site is not configured for smtp mail, your smtp mail does think your email address is a valid one for its domain. Or even that the email addresses provided are really not valid.

    In the 'Dev-tools' folder of the zenphoto package is a plugin named pseudomail. Install it and try again. If you get a "mail" in your zp-data folder then Zenphoto is woriing and your site mail handler is not.
  • vincent3569 Member, Translator
    hi

    I have installed the pseudomail plugin.
    I have tried a new registration and I have got a "mail" in your zp-data folder but the new user don't get a email, the administrator don't get a email too.

    Could you help to solve may problem ?

    notice :
    - I receive mails from contact_form and comment_form
    - the zenphoto_sendmail plugin is activated
  • You must have bad e-mail addresses, then. That would be the only difference in the mail plugins. Pseudo mail does not fail as it just writes a file. Sendmail may not send to bad addresses.
  • vincent3569 Member, Translator
    After few verifications, I'm sure of the email of the new user.
    I made different attempts with different email adresses, but the result is the same : no email sent to the new user
  • Sorry, can't help you. When I do a register user it does send the mail to me.
  • vincent3569 Member, Translator
    ok, it's working for you but it doesn't not working for me.
    so what can do we do ?
    I don't use mod_rewrite, could it be an issue (like the issue reported in the old post above)?
  • acrylian Administrator, Developer
    What did you enter on the gallery options for the mail address to send mails from? For example for zenphoto.org we have set it to `zenphoto@www.zenphoto.org` which works. It might be that your server requires that to be set to an real exisiting mail address for your domain or so.
  • vincent3569 Member, Translator
    hi

    my mail address to send mails from is a valid mail (it is not the default value).

    I notice somthing curious :
    there is an excerpt of the content of the mail found in the log with pseudomail
    `

    *------------------------------------------------

    À : xxx.xxx@xxxx.fr

    From: Galerie - 1.4.1.1

    Sujet : Confirmation de l’inscription

    *------------------------------------------------

    Vous avez reçu ce mail parce que vous vous êtes enregistré sur le site. Pour compléter votre inscription, rendez-vous sur http://vincent.bourganel.free.fr/zenphoto_t2/index.php?p=register&verify=xxxxxx

    `

    "from" is equals to the title of the gallery and is not equals to the site mail.

  • You might try your test with the site set to English. Perhaps this is a character set or translation problem.
  • vincent3569 Member, Translator
    I have tried with the entire site in english.
    I have tried with the email as the login ID.
    no change
  • vincent3569 Member, Translator
    Perhaps I have another idea...

    In default rights section, there is the following message :
    "Initial rights for the new user. (If no rights are set, approval of the user will be required.)"

    question : if no rights are set, the confirmation email is sent to the new user ?

    the problem is that I can't set any value to the rights.
    all other options are saved, but not the default user rights.
    and by default, there is no rights set.
  • Your "From" address does not appear to be a valid e-mail address, so perhaps your smtp is faulting on it.
  • question : if no rights are set, the confirmation email is sent to the new user ?

    You did show the message sent to the new user via the pseudomail plugin, didn't you? Were no rights set then?

    Let me repeat the analysis:

    You do get the mail with the pseudomail plugin. This means that register user is sending the mail.

    All mail plugins are equal. If one gets the message to send, then all do. So the Zenphoto sendmail plugin also got mail to send.

    Zenphoto Sendmail (presumably) did not report an error back so it's tests were successful and it passed the mail on to your SMTP server.

    Your user did not get the mail. So. Either the mail went to the wrong address (you say it is correct.) or your SMTP server did not send it.

    Problem is with your SMTP server, then. Nothing Zenphoto can do about it.

    [edit] I did think of a third possibility--the mail went into someone's SPAM filter so was not delivered.
  • vincent3569 Member, Translator
    hi

    I have done some tests :
    - site email : vince.bourganel@xxx.com
    - admin email : vince.bourganel@yyy.com

    1- contact_form (test OK) :
    - send a copy : yes
    - Mail address : vince.bourganel@yyy.com (the same as admin)
    I wrote a mail from "contact us" (email of visitor : vince_bourganel@zzz.fr)
    I receive a mail on vince.bourganel@yyy.com and the visitor receive a mail on vince_bourganel@zzz.fr.

    there is the trace :

    *------------------------------------------------
    To: vince.bourganel@yyy.com
    From: Galerie - 1.4.1.1 <vince.bourganel@xxx.com>
    Cc: vince_bourganel@zzz.fr
    Subject: test commentaire (Galerie - 1.4.1.1)
    *------------------------------------------------
    test commentaire message

    test
    vince_bourganel@zzz.fr

    2- comment_form (test OK) :
    I wrote a comment from my gallery (email of visitor : vince_bourganel@zzz.fr)
    I receive a mail on vince.bourganel@yyy.com

    there is the trace :

    *------------------------------------------------
    To: vince.bourganel@yyy.com
    From: Galerie - 1.4.1.1 <vince.bourganel@xxx.com>
    Subject: [Galerie - 1.4.1.1] Comment posted
    *------------------------------------------------
    A comment has been posted on your album "terre".

    Author: bourganel
    Email: vince_bourganel@zzz.fr
    Website:
    Comment:

    essai commentaire
    [...]

    3- register_user (test KO) :
    - Email ID : no
    - Notify : yes
    - Email notification text : To complete your registration visit %s.
    I registred a new user from my gallery :
    - Name : test
    - UserID : test
    - Email : vince_bourganel@zzz.fr

    I don't receive a mail on vince_bourganel@zzz.fr to confirm my inscription
    there is the trace :

    *------------------------------------------------
    To: vince_bourganel@zzz.fr
    From: Galerie - 1.4.1.1 <vince.bourganel@xxx.com>
    Subject: Registration confirmation
    *------------------------------------------------
    To complete your registration visit http://vincent.bourganel.free.fr/zenphoto_t2/index.php?p=register&verify=hvhvhvhjvhvhvhvjhv.

    4- another try of register_user (test OK) :
    - Email ID : no
    - Notify : yes
    - Email notification text : your registration
    I registred a new user from my gallery :
    - Name : test
    - UserID : test
    - Email : vince_bourganel@zzz.fr

    I receive a mail on vince_bourganel@zzz.fr to confirm my inscription (but without the link to confirm the registration

    the issue is on the confirmation link
    http://vincent.bourganel.free.fr/zenphoto_t2/index.php?p=register&verify=hvhvhvhjvhvhvhvjhv


    with this link, the email is not sending (or is not receive, I can't tell anymore)

    how to solve this issue ?
  • vincent3569 Member, Translator
    question : if no rights are set, the confirmation email is sent to the new user ?

    You did show the message sent to the new user via the pseudomail plugin, didn't you? Were no rights set then?

    I can't set any default right in admin of register_user (the options checked are not saved)

    So, a new user is always with no rights
  • No, depends on what you set in the options. However the default would be with no rights until you give them some.
  • vincent3569 Member, Translator
    what are the options you are talking about?
    In options>plugin>register_user, I can't save any Default rights given to the new users.
  • Install the nightly build--that is fixed.
  • with this link, the email is not sending (or is not receive, I can't tell anymore)
    Sounds very much like a SPAM filter is preventing a mail with that link from being delivered. Probably because the SPAM filter mis-trusts mails with links in them. (Not suprising given that is how SPAMmers try to get you to visit some dangerous site.) Not much we can do about that. People just have to check their SPAM folders for the mail or declare any mail from the site admin to be "safe".
  • acrylian Administrator, Developer
    Normally mail providers inform via a info mail about new possible spam. I get one each day roughly...
  • vincent3569 Member, Translator
    I have no spam et I have dont those tests with 3 different emails (3 different providers).

    I sincerely believe that the mail is not sent.
  • I guess you will have to instrument the zenphoto sendmail plugin to see what is happening. Certainly we are not able to recreate this situation so it seems unique to your configuration.
  • vincent3569 Member, Translator
    hi

    could you explain how to instrument the zenphoto sendmail plugin to see what is happening ?
  • Only in a general sense because we have no idea what is happening.

    But what you do is place statements in the `zenphoto_sendmail()` function (and perhaps the `UTF8->send_mail()` function as well) to record what these functions are doing. You will see that they are really quite simple functions, So, for instance, you can dump out things like the parameters being passed to `UTF8->send_mail()` and be sure that it is being called for both the admin and the user.

    See what paths are taken through each function as well. Generally you need to find some clue as to why one mail is not being delivered and the other is.
Sign In or Register to comment.