Page 1 of 1

How to send emails when posting a blog article?

Posted: Wed Jul 15, 2020 2:33 am
by webb24h
I'm a programmer. I have successfully installed s9y on my server. I have a database of users and I would like them to know when I post new articles. I know how to use phpmailer so this is not the question. My question is which file takes care of publishing articles? I would like to modify this page and integrate with phpmailer. Thank you for pointing me in the right direction!

Re: How to send emails when posting a blog article?

Posted: Fri Jul 17, 2020 4:10 pm
by onli
Hi. Have a look at https://github.com/s9y/Serendipity/blob ... .php#L1321, but instead of integrating this into the core it could be handled by a plugin. backend_publish would probably the most fitting event to catch.