In my plugin I am parsing all cc’d/bcc’d users and adding them to the topic they were cc’d on. This works well for both initial emails and forwarded replies. Based on a site setting I either create a full user or a staged email user. Where I have hit a snag is if I create a full user, I want to send an email saying: “hey a user was created … etc”
I can manually post to my sendgrid api and do this but that isn’t very good for a reusable plugin, is there any way to customize an email message and send directly from the discourse core?