The new set_personalization for template is not sending emails
After last night's release, set_simple_personalization started to throw an error, for template based emails. I looked up the documentation here and replaced it with set_personalization and that removed the error, and the code seems to be running successfully. But, when when i try sending a mail to myself, it's not going. I check in mailersend activity tab as well, and i see the mail not sent. Am i missing something?
Are you getting any kind of error?
Yes, I see the error now. 422 {"message":"The personalization.0.data field is required when personalization.0.email is present.","errors":{"personalization.0.data":["The personalization.0.data field is required when personalization.0.email is present."]}}
On Tue, 16 Jul 2024 at 12:01, Igor Hrček @.***> wrote:
Are you getting any kind of error?
— Reply to this email directly, view it on GitHub https://github.com/mailersend/mailersend-python/issues/146#issuecomment-2231630272, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4LODSJZ257SJND2V5RBWGDZMVUXBAVCNFSM6AAAAABK7DAR6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGYZTAMRXGI . You are receiving this because you authored the thread.Message ID: @.***>
Any update on this? All our production emails are stalled as a result of this. Please help resolve asap.
@prateekshac1 I would suggest that you revert to a previous version of the library first.
I've tested the implementation (example from the Readme) and it works as expected, haven't received any errors and email was sent regularly. I would suggest that you try using the example provided in Readme.
yes, that solves the prod issue. i ran into trouble downgrading yesterday. But it's correctly restored now. I am using the example as in your documentation as well. Let me try a few more things. Does the error message above clue you into anything specific i should be looking for?