Page 1 of 1

[Solved] review email not sending (or arriving)

Posted: 01 Aug 2008, 18:46
by dax702
Hi Jan,
I was careful to check everything this time before posting too quickly. Earlier tonight I posted an entry to the guestbook and the review email arrived. But ever since that one, no more have arrived (I'm in the process of manually entering some from the old website) After discovering this, I went to com_contact to test that out and discovered it was not working either. The problem was that I have to have the contact's email address be an email on my domain. As well as the from address. So once I changed those, the email and email copy arrived instantly when I used com_contact. So I went back to Phoca Guestbook and submitted a testimonial and unfortunately, the review email did not arrive. I cannot figure out why this is happening (and yes, I first verified that the setting for enabling the email is set in the menu item) What is even more strange is why did that one email arrive even when my email settings were not correct?

Re: review email not sending (or arriving)

Posted: 01 Aug 2008, 23:09
by Jan
Hi, the e-mail is sent by Joomla! framework's methods in Phoca Guestbook, try to check all variables in:

components/com_phocaguestbook/controllers/phocaguestbook.php

line: 568 (before sendMail)

add e.g. print_r($email);exit; to see what email address is there, you can check all other variables too (e.g. $mailfrom, ...)

Jan

Re: review email not sending (or arriving)

Posted: 02 Aug 2008, 00:45
by dax702
Hi, I didn't fully understand your instruction. You want me to go to line 568 in that file and add:
print_r($email);exit;

What do I do after that? Or where do I go to see what effect adding that line of code had?

Re: review email not sending (or arriving)

Posted: 02 Aug 2008, 15:49
by Jan
If you add this code into the script and then you will go to your guestbook and add some message, instead of confirmation you get the name of the variable, so you will see, if the system has added the correct e-mail address or if there is an e-mail address at all...

Jan