Notification Of Comment Received

This is the right place to report general bugs, make suggestions or ask for help.
User avatar
WineMan
Posts: 75
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: 414
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?
Helpful FlatPress links: Project blog ๐Ÿ“ - FlatPress wiki ๐Ÿ“– - FlatPress@Twitter ๐Ÿฆ - FlatPress@Mastodon ๐Ÿ˜
Stay up to date with our feeds: Forum RSS feed ๐Ÿ“œ - Project blog RSS feed ๐Ÿ“œ
Feel free to say Thank you: Donate โค๏ธ

๐Ÿ‡ฉ๐Ÿ‡ช Fรผr meinen Arbeitgeber in Bochum habe ich zwei Stellen zu besetzen: Junior-Systemadministrator, Ausbildung zum Fachinformatiker Systemintegration ๐Ÿ‡ฉ๐Ÿ‡ช

User avatar
fraenkiman
Posts: 32
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
My Flatpress-Blog [German]: https://frank-web.dedyn.io

User avatar
WineMan
Posts: 75
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.

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

Re: Notification Of Comment Received

Post by Arvid » Sun Oct 02, 2022 11:31 am

Glad it works now - thx Frank :)
Helpful FlatPress links: Project blog ๐Ÿ“ - FlatPress wiki ๐Ÿ“– - FlatPress@Twitter ๐Ÿฆ - FlatPress@Mastodon ๐Ÿ˜
Stay up to date with our feeds: Forum RSS feed ๐Ÿ“œ - Project blog RSS feed ๐Ÿ“œ
Feel free to say Thank you: Donate โค๏ธ

๐Ÿ‡ฉ๐Ÿ‡ช Fรผr meinen Arbeitgeber in Bochum habe ich zwei Stellen zu besetzen: Junior-Systemadministrator, Ausbildung zum Fachinformatiker Systemintegration ๐Ÿ‡ฉ๐Ÿ‡ช

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest