Add payload parameters for all requests that sends a mail. This allows to send non sensitive data to the mail service.
The payload is simply forwarded, no checks are made so you should probably check the payload before doing anything with it, except for the session mail where we add some session info to the payload.
Now the auth is also sending a mail when creating a new session. And added test just to make sure that passing the lang in a payload actually works when sending a mail.
Add payload parameters for all requests that sends a mail. This allows to send non sensitive data to the mail service. The payload is simply forwarded, no checks are made so you should probably check the payload before doing anything with it, except for the session mail where we add some session info to the payload. Now the auth is also sending a mail when creating a new session. And added test just to make sure that passing the lang in a payload actually works when sending a mail.