adminemail after a post?

Phoca Guestbook - creating guestbooks in Joomla! CMS
carsten888
Phoca Member
Phoca Member
Posts: 35
Joined: 22 Oct 2008, 12:11
Location: Tilburg, Holland
Contact:

adminemail after a post?

Post by carsten888 »

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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: adminemail after a post?

Post by Jan »

Hi, email is working even the "review item" is not set, see:
https://www.phoca.cz/documents/3-phoca-g ... l-settings

Jan
If you find Phoca extensions useful, please support the project
carsten888
Phoca Member
Phoca Member
Posts: 35
Joined: 22 Oct 2008, 12:11
Location: Tilburg, Holland
Contact:

Re: adminemail after a post?

Post by carsten888 »

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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: adminemail after a post?

Post by Jan »

Hmm, testing now without any problem. Phoca Guestbook uses standard Joomla! methods to send the email, so there should not be any problem :idea:

Jan
If you find Phoca extensions useful, please support the project
carsten888
Phoca Member
Phoca Member
Posts: 35
Joined: 22 Oct 2008, 12:11
Location: Tilburg, Holland
Contact:

Re: adminemail after a post?

Post by carsten888 »

I don't know why, but I got it working like this:

file components/com_phocaguestbook/models/guestbook.php
line 919

Code: Select all

JUtility::sendMail($mailfrom, $fromname, $email, $subject, $message);	
replaced by

Code: Select all

  
   
   mail($email, $subject, $message, ''); 
If I ever figure out what the problem was with sendMail, I will post back.
Post Reply