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

Adding BCC to Sengrid 9.1.1 gives Bad Request #448

Closed
SushantKadam008 opened this issue May 8, 2017 · 4 comments
Closed

Adding BCC to Sengrid 9.1.1 gives Bad Request #448

SushantKadam008 opened this issue May 8, 2017 · 4 comments
Labels
status: help wanted requesting help from the community type: question question directed at the library

Comments

@SushantKadam008
Copy link

Issue Summary

Hi,
I have created a sample with BCC. Once I add a BCC it gives a bad request. Without BCC everything works fine
SendgridSamples.zip

Steps to Reproduce

Please fins attached zip for more information

Technical details:

Sendgrid 9.1.1

  • .NET Version: 4.5.2
@paritoshmmmec
Copy link
Contributor

paritoshmmmec commented May 8, 2017

@SushantKadam008 Each email address in the personalization block should be unique between to, cc, and bcc. sushantkadam17@gmail.com is repeated between to and bcc.

test api here
https://sendgrid.com/docs/API_Reference/api_v3.html

@thinkingserious thinkingserious added status: help wanted requesting help from the community type: question question directed at the library labels May 8, 2017
@thinkingserious
Copy link
Contributor

@SushantKadam008,

@paritoshmmmec is correct, this is expected behavior.

Thanks!

@SushantKadam008
Copy link
Author

I tested it and it works with different email address. But in this atleast proper exception needs to be raised as Bad Request does not tell clearly that To and Bcc are same. We might get Bad Request in mutliple scenarios

@thinkingserious
Copy link
Contributor

Hi @SushantKadam008,

You should be able to retrieve the exception message like so: https://github.com/sendgrid/sendgrid-csharp/blob/master/TROUBLESHOOTING.md#error

Please let me know if that does not fit your needs.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: help wanted requesting help from the community type: question question directed at the library
Projects
None yet
Development

No branches or pull requests

3 participants