Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have to choose between attachment or CC/BCC, can't be both #2140

Open
changqing-cpf opened this issue Aug 1, 2023 · 0 comments
Open

Have to choose between attachment or CC/BCC, can't be both #2140

changqing-cpf opened this issue Aug 1, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@changqing-cpf
Copy link

changqing-cpf commented Aug 1, 2023

Describe the bug

This is for the programmatic email API.

In order to send attachment, have to use multipart/form-data. But when using multipart/form-data, there is no way to make cc or bcc an array.

Tried JSON.stringify, got the error message: "cc" must be an array.

Also tried cc[], got the error message: "cc[]" is not allowed

If I use application/json instead, can't send attachment.

Expected behavior

Parse multipart/form-data such that cc and bcc can be converted into an array. Alternatively, remove the array requirement for cc and bcc, and allow sending multiple cc and bcc form fields, like how attachments are implemented.

@changqing-cpf changqing-cpf added the bug Something isn't working label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant