hi guys,
I have read all other posts dealing with my question but still no clue what I am doing wrong:
Here is what I have done:
-loged in as webmaster and went to customize: inputted the webmaster@mydomain.de email
-went to admin configuration inputted again the same email and ticked yes, notify of comments and registrations
-went to users-modify webmaster: inputted the same email here again.
-went to ussers: ticked the webmaster account, clicked on create email
so what more do I have to do to receive emails when somebody posts a comment?
Offline
so what more do I have to do to receive emails when somebody posts a comment?
posting a comment ? (sorry, I had to make it !)
Only users who have the status "admin" and having a mail-address will be notified. You can verify whether function "mail()" works or not by modifying file include/functions.inc.php (release 1.3.0), replace
423 @mail( $to, $subject, $content, $headers, $options );
by
mail( $to, $subject, $content, $headers, $options );
and look if a error is returned when PhpWebGallery tries to send an email.
Offline
you mean I should skip the @ 8-O why didn't you say that?
don't mind my joke, thx for the answer.
I did what you suggested and get the following error:
Warning: mail(): SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in /public/www/kunden/k2100/htdocs/gallery/include/functions.inc.php on line 423
so what does that mean?
P.S. I can't remember if and where I had to configure the path to my sendmail, or how else is the mail delivered? Please do help me a as I have to check the comments on a regular basis so they stay clean
Offline
Your error message is quite clear : delete the fifth parameter ($options) and try once more.
Offline
thx a lot,
I was uncertain of whether to leave the code with or without the @ symbol, I decided to leave the @ where it was and your advice worked.
p.s. is there a way to include a link to the page where all comments are displayed in the email notifying me? It would be best if the linked led me to the comments page with viewing of comments from the last 30 days selected.
Offline
p.s. is there a way to include a link to the page where all comments are displayed in the email notifying me? It would be best if the linked led me to the comments page with viewing of comments from the last 30 days selected.
Two solutions :
1. modify PhpWebGallery and the notification mail (hard because I don't know the global URL of the site)
2. add a bookmark to your web browser to the page of comments with 30 days of history
Offline
hello, first, your software is incredible! check out what I've done with it **Broken link**
I am having the same problem with not receiving email notification when someone posts a comment.
I took your advice and no error was returned so I am still in the dark. Do you have any other advice on this topic. It is probably the server, but thought I'd ask. thanks.
Do you have any other advice on this topic.
in include/functions.inc.php (release 1.3.0), replace
423 @mail( $to, $subject, $content, $headers, $options );
by
echo 'Debug : try to send an email<br />'; @mail( $to, $subject, $content, $headers, $options );
and tell me if you see this message on the top of the page when PhpWebGallery should try to send a email.
Offline
wow, am i ever the idiot! sorry for taking your time and thankyou for your help.
the problem turned out to be (i didn't think i was this stupid :oops: ) no address registered for the admin in the database. I logged in to phpwebgallery admin, added the address in the admin user, and bang, it all works.
looking at the rest of the function is what clued me into the fact that i must not have an email in the db. I don't know why, but i assumed that the mail was being sent to the webmaster's email that is specified in the config section.
again, sorry for wasting your time. and ya, after i added the address i saw the message.