Notification Of Comment Received

This is the right place to report general bugs, make suggestions or ask for help.
User avatar
WineMan
Posts: 106
Joined: Tue Sep 01, 2020 5:03 pm

Re: Notification Of Comment Received

Post by WineMan » Tue Jun 28, 2022 1:40 am

Still not being notified of posted comments. At this point, I don't know where else to look. If anyone else has any ideas, please let me know.

User avatar
Arvid
FlatPress Coder
Posts: 558
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: Notification Of Comment Received

Post by Arvid » Sat Jul 09, 2022 12:27 pm

Still no idea what exactly could cause that problem.

Does anyone else experience problems with getting mails on new comments?

User avatar
fraenkiman
Posts: 210
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: Notification Of Comment Received

Post by fraenkiman » Sat Sep 10, 2022 5:59 pm

Hello, everyone,

I suspect this is not a problem with FlatPress.

Without knowing the configuration, I'm assuming that the mail server on the host is either unconfigured or misconfigured.

As a temporary solution, you could adapt the comments.php file from line 225 as follows:

Code: Select all

				// @utils_mail($from_mail, "New comment on {$fp_config['general']['title']}", $mail);
				
				$email_to = "mail@yahoo.ltd";
				$email_subject = "New Comment";
				$email_message = "$mail";
				@mail($email_to, $email_subject, $email_message);
			}
Where mail@yahoo.ltd is to be replaced with the real recipient address. This isn't a clean solution, but it works ;)

Best Regards
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

User avatar
WineMan
Posts: 106
Joined: Tue Sep 01, 2020 5:03 pm

Re: Notification Of Comment Received

Post by WineMan » Sat Sep 10, 2022 8:14 pm

Thank you fraenkiman for your help in getting this to work for me. It provides exactly what I was looking for since the original code was not notifying me of any comment notification.


Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests