Hello @system ,
I have tried the 1st proposal solution, but seems that is not working as i get an error about the ‘Email’ value. It’s like it doesn’t accept the string value.
Can you help more?
Hello @system ,
I have tried the 1st proposal solution, but seems that is not working as i get an error about the ‘Email’ value. It’s like it doesn’t accept the string value.
Can you help more?
I am hitting the same error. Were you able to resolve this?
unfortunately not @Shah_Hussain
Haven’t checked more since then, as we decided not to send emails at all in the end
In case you find a solution for that, please let me know also here. I will do the same
Too late to reply, but i have figured out the solution to this and it shall help to anyone who is working with it.
Solution:
"{ "from": { "email": "sender@example.com", "name": "John Doe" }, " +
""personalizations": [ { "to": [ { "email": "recipient1@example.com" }, " +
"{ "email": "recipient2@example.com" } ] } ], " +
""subject": "My Subject", " +
""content": [ { "type": "text/plain", "value": "This is the body of my email in plain text." }, " +
"{ "type": "text/html", "value": "This is the body of my email in HTML." } ], " +
“"attachments": [ { "filename": "my_attachment.pdf", "content": "BASE64_ENCODED_CONTENT", "type": "application/pdf" } ] }”;
Please note: My project was of C# and not in the VB.NET
Source: Mail Send | Twilio
The source helped me to an extent.