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

Cannot have multiple recipient in a single email #18

Open
kenlai3974 opened this issue Nov 7, 2022 · 1 comment
Open

Cannot have multiple recipient in a single email #18

kenlai3974 opened this issue Nov 7, 2022 · 1 comment
Labels
3.0.0 To be included in the version 3.0.0

Comments

@kenlai3974
Copy link

kenlai3974 commented Nov 7, 2022

I am not able to have multiple recipients in a single email.
I checked the source code on the SendEmail function. It seems it is not supported.

                SendEmailApi sendEmailApi = new SendEmailApi(configuration);  
                var emailResponse = sendEmailApi.SendEmail(  
                    from: "some-email",  
                    to: "a@a.com,b@b.com", //How to do this??  
                    subject: "Some_subject",  
                    HTML: "Some_html",  
                    trackopens: false,  
                    track: false  
                );  
@ib-fsrnec
Copy link

ib-fsrnec commented Jan 16, 2023

Hi @kenlai3974, sorry for the late response.

Thank you very much for raising an issue. Yes, it is possible to add multiple recipients through to/cc/bcc form parameters like this:

curl --request POST 'https://api.infobip.com/email/3/send'
...
--form 'to="john.smith@somedomain.com"'
--form 'to="john.doe@somedomain.com"'
...

Unfortunately, the SDK itself doesn't provide the support for adding multiple recipients. This is going to be included in our new major release. We'll keep you informed. Here is the similar issue that was reported for our Java client some time ago: infobip/infobip-api-java-client#20 (comment).

Thank you for using our library!
Best regards,
Filip

@ib-fsrnec ib-fsrnec added the 3.0.0 To be included in the version 3.0.0 label Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.0.0 To be included in the version 3.0.0
Projects
None yet
Development

No branches or pull requests

2 participants