sendgrid icon indicating copy to clipboard operation
sendgrid copied to clipboard

Cannot convert value of type - EmailContent

Open kicsipixel opened this issue 1 year ago • 0 comments

if I try to use 5.0.0 I get error: "Cannot convert value of type '[String : String]' to expected element type 'Array<EmailContent>.ArrayLiteralElement' (aka 'EmailContent')" for

let email = SendGridEmail(
                    personalizations: [emailConfig],
                    from: fromEmail,
                    content: [["type": "text/html", "value": emailContent]])

With 4.0.0 it works fine...

kicsipixel avatar Jun 29 '24 21:06 kicsipixel