In Phoca Guestbook v2.0.7 mails informing the administrator about adding a new entry is sent from your e-mail address given on the form to add an entry or on the lack from an e-mail set for the Administrator account. If the email address from which a message is sent is not in the same domain as the web page a large part of the mail systems rejects the message due to inconsistent SPF record. The solution to this problem in the Joomla! is set in the Global Configuration to send mail from a special address on the domain using SMTP. However, as I wrote at the beginning Phoca Guestbook does not use this setting. To fix it, in the file /components/com_phocaguestbook/models/guestbook.php replace the following code
Code: Select all
if (isset($post2['email']) && $post2['email'] != '') {
$mailfrom = $post2['email'];
} else {
$mailfrom = $rows[0]->email;
}
Code: Select all
$mailfrom = $app->getCfg('mailfrom');