How to send emails when posting a blog article?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
webb24h
Posts: 1
Joined: Wed Jul 15, 2020 2:17 am

How to send emails when posting a blog article?

Post 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!
onli
Regular
Posts: 2822
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

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

Post 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.
Post Reply