openproject
openproject copied to clipboard
In case of errors in mail_handler, serialize mail object properly
The mail being passed to UserMailer cannot be serialized by ActiveJob, so this fails whenever background jobs are being used.
Instead of trying to pass a Mail::Message, only pass in the values we need to send out the response.
https://community.openproject.org/wp/35823