Page 1 of 1

adminemail after a post?

Posted: 16 May 2012, 07:55
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?

Re: adminemail after a post?

Posted: 16 May 2012, 16:18
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

Re: adminemail after a post?

Posted: 17 May 2012, 15:22
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?

Re: adminemail after a post?

Posted: 18 May 2012, 00:41
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

Re: adminemail after a post?

Posted: 18 May 2012, 10:01
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.