gerhard
(Gerhard Schlager)
3
First of all, you should probably send the email in a sidekiq job. I’d start by trying doing something like this within your plugin:
So, essentially, try to reuse the build_email method. It should create a message that works. You can add the template to your plugin’s locale file.
I hope that helps a little bit. I’m sure you can figure out the rest… 