The admin would like a email when a user posts a message in the guestbook.
I read here https://www.phoca.cz/documents/3-phoca-g ... parameters about that, but it seems the email only arrives if the option above that 'Review Item' is set to 'yes'.
Is it possible to configure that the post does show, but the email gets send, so if spam it can be removed?
adminemail after a post?
-
- Phoca Member
- Posts: 35
- Joined: 22 Oct 2008, 12:11
- Location: Tilburg, Holland
- Contact:
- Jan
- Phoca Hero
- Posts: 48739
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: adminemail after a post?
Hi, email is working even the "review item" is not set, see:
https://www.phoca.cz/documents/3-phoca-g ... l-settings
Jan
https://www.phoca.cz/documents/3-phoca-g ... l-settings
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 35
- Joined: 22 Oct 2008, 12:11
- Location: Tilburg, Holland
- Contact:
Re: adminemail after a post?
I tried, but actually there is no mail arriving at all. I double checked the mailadress of the connected account. Nothing in the spam folder. Email functionality on the contact form gogin to the same adress works, so mail can be send.
Have you got any suggestions about what could be going wrong?
Have you got any suggestions about what could be going wrong?
- Jan
- Phoca Hero
- Posts: 48739
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: adminemail after a post?
Hmm, testing now without any problem. Phoca Guestbook uses standard Joomla! methods to send the email, so there should not be any problem 
Jan

Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 35
- Joined: 22 Oct 2008, 12:11
- Location: Tilburg, Holland
- Contact:
Re: adminemail after a post?
I don't know why, but I got it working like this:
file components/com_phocaguestbook/models/guestbook.php
line 919
replaced by
If I ever figure out what the problem was with sendMail, I will post back.
file components/com_phocaguestbook/models/guestbook.php
line 919
Code: Select all
JUtility::sendMail($mailfrom, $fromname, $email, $subject, $message);
Code: Select all
mail($email, $subject, $message, '');