Email notification for new FAQ
Moderator: Thorsten
Email notification for new FAQ
Hi,
is there a option, or hack how to enable email notification to specific group or email, if new FAQ was created ?
I just found email notification based on question, but this is not what I want.
Thank you
is there a option, or hack how to enable email notification to specific group or email, if new FAQ was created ?
I just found email notification based on question, but this is not what I want.
Thank you
Re: Email notification for new FAQ
Hi,
there's a notification for both new FAQs and new questions.
bye
Thorsten
there's a notification for both new FAQs and new questions.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Email notification for new FAQ
could you please navigate me ?
what should be set ? enabled ?
wiki ?
I didn't found it in docs.
what should be set ? enabled ?
wiki ?
I didn't found it in docs.
Re: Email notification for new FAQ
Hi,
it's enabled by default and cannot be disabled. If a new FAQ is added in the frontend, the admin and a possible category owner will get an e-mail to review/activate the new entry.
bye
Thorsten
it's enabled by default and cannot be disabled. If a new FAQ is added in the frontend, the admin and a possible category owner will get an e-mail to review/activate the new entry.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Email notification for new FAQ
so there is something wrong,
I'm admin, and I have added 52 FAQs, but no email was received.
Users can add FAQs too, but again, no email notification.
I have tried search mail.log, nothing. I'm using postfix.
Could you please tell me more ? what is used to send email ? are there any logs ?
I have version 2.8.14
I'm admin, and I have added 52 FAQs, but no email was received.
Users can add FAQs too, but again, no email notification.
I have tried search mail.log, nothing. I'm using postfix.
Could you please tell me more ? what is used to send email ? are there any logs ?
I have version 2.8.14
Re: Email notification for new FAQ
Hi,
if you do not get any mails please check your mail log of your mail server. We just use the plain mail() method in PHP.
bye
Thorsten
if you do not get any mails please check your mail log of your mail server. We just use the plain mail() method in PHP.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Email notification for new FAQ
Hi,
this simple test is working ok,
http://www.w3schools.com/php/php_mail.asp
but emails from FAQ not,
As I mentioned before, nothing in mail.log, no message from FAQ.
Any help ?
this simple test is working ok,
http://www.w3schools.com/php/php_mail.asp
but emails from FAQ not,
As I mentioned before, nothing in mail.log, no message from FAQ.
Any help ?
Re: Email notification for new FAQ
Hi,
is the sender aka the admin allowed as "sent from"?
bye
Thorsten
is the sender aka the admin allowed as "sent from"?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Email notification for new FAQ
Hi,
admin, is my email address, exactly same, which I use in previous test in field FROM.
can I enable debug, or see logs generated by PMF ? Where are they ?
admin, is my email address, exactly same, which I use in previous test in field FROM.
can I enable debug, or see logs generated by PMF ? Where are they ?
Re: Email notification for new FAQ
Hi,
you can enable the debug mode here: inc/Bootstrap.php
bye
Thorsten
you can enable the debug mode here: inc/Bootstrap.php
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Email notification for new FAQ
Now I can see errors.
This error show after adding new faq:
variable $address is empty
Why ? I have email address on each account.
This error show after adding new faq:
Code: Select all
phpMyFAQ user error [256]: Mail Class: is not a valid e-mail address! in /home/www/faq/inc/PMF/Mail.php on line 283
Code: Select all
private function _addEmailTo(&$target, $targetAlias, $address, $name = null)
{
// Sanity check
<------>
if (!self::validateEmail($address)) {
trigger_error(
"<strong>Mail Class</strong>: $address is not a valid e-mail address!",
E_USER_ERROR
);
return false;
}
Re: Email notification for new FAQ
Hi,
maybe there's a bug during adding it to the function, I'll check it.
bye
Thorsten
maybe there's a bug during adding it to the function, I'll check it.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
-
- Posts: 2
- Joined: Mon Oct 13, 2014 8:36 am
Re: Email notification for new FAQ
Unfortunately I can't find a piece of code that is responsible for notification on new faq entry that is created with Administration->Add new FAQ record.Thorsten wrote:Hi,
it's enabled by default and cannot be disabled. If a new FAQ is added in the frontend, the admin and a possible category owner will get an e-mail to review/activate the new entry.
bye
Thorsten
Can someone guide me?
I have looked into admin/record.add.php but found only notification if FAQ is an answer to someone's question
Code: Select all
$openQuestionId = PMF_Filter::filterInput(INPUT_POST, 'openQuestionId', FILTER_VALIDATE_INT);
if (null !== $openQuestionId) {
if ($faqConfig->get('records.enableDeleteQuestion')) { // deletes question
$faq->deleteQuestion($openQuestionId);
} else { // adds this faq record id to the related open question
$faq->updateQuestionAnswer($openQuestionId, $recordId, $categories['rubrik'][0]);
}
$url = sprintf(
'%s?action=artikel&cat=%d&id=%d&artlang=%s',
$faqConfig->get('main.referenceURL'),
$categories['rubrik'][0],
$recordId,
$recordLang
);
$oLink = new PMF_Link($url, $faqConfig);
// notify the user who added the question
$notifyEmail = PMF_Filter::filterInput(INPUT_POST, 'notifyEmail', FILTER_SANITIZE_EMAIL);
$notifyUser = PMF_Filter::filterInput(INPUT_POST, 'notifyUser', FILTER_SANITIZE_STRING);
$notification = new PMF_Notification($faqConfig);
$notification->sendOpenQuestionAnswered($notifyEmail, $notifyUser, $oLink->toString());
}
Re: Email notification for new FAQ
Hi @Thorsten,
so, it is bug ? or it is not implemented ?
Should I create Feature request on GIt, or Bug report ?
so, it is bug ? or it is not implemented ?
Should I create Feature request on GIt, or Bug report ?
Re: Email notification for new FAQ
Hi,
yes, please do so! I was on vacation, sorry for the delay.
bye
Thorsten
yes, please do so! I was on vacation, sorry for the delay.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist