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-49376This is a known issue (I dont'use mod_rewrite) ?
Comments
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.
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
I made different attempts with different email adresses, but the result is the same : no email sent to the new user
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)?
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.
I have tried with the email as the login ID.
no change
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.
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.
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 : 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 : 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 : 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 ?
So, a new user is always with no rights
In options>plugin>register_user, I can't save any Default rights given to the new users.
I sincerely believe that the mail is not sent.
could you explain how to instrument the zenphoto sendmail plugin to see 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.