Skip to content

Attachments with accents in the name result in an error from SendGrid #54

Closed
@dtarachan

Description

@dtarachan

When sending attachments with accents in the file name, SendGrid responds with the following error:

<result>
  <message>error</message>
  <errors>
    <error>Parameter =?utf-8?B?ZmlsZXNbTVBHw5bDicOLLnBkZl0=?= is not utf8</error>
  </errors>
 </result>

Sample code for adding the attachment to reproduce the error above is:

mailMessage.AddAttachment(fs, "MPGÖÉË.pdf");

Is this a bug in the library or with SendGrid? Or should the file name be encoded or escaped in some way?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions