Open Mammut-Felix opened 9 months ago
When additional properties are defined in sendMail(options), they aren't present in the payload of the callback.
Parse.Cloud.sendEmail({ templateName: 'testTemplate', placeholders: { name: 'Test', }, recipient: 'testmail@domain.com', extra: { testKey: 'testValue' } })
config.emailAdapter = { module: 'parse-server-api-mail-adapter', options: { sender: '..', templates: { ... }, apiCallback: async ({ payload, locale }) => { console.log(payload) }) } }
output:
{ from: '...', to: '...', subject: 'Test\n', text: '...', html: '<html>\n' + ' <body>\n' + ' <p>Test</p>\n' + ' </body>\n' + '</html>\n' }
The properties set in extra should be present somehow.
3.1.1
6.4.0
Isn't there a test case for this?
New Issue Checklist
Issue Description
When additional properties are defined in sendMail(options), they aren't present in the payload of the callback.
Steps to reproduce
Actual Outcome
output:
Expected Outcome
The properties set in extra should be present somehow.
Failing Test Case / Pull Request
Environment
3.1.1
6.4.0
Logs