You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Added mail settings attributes for bypass_spam_management, bypass_bou… (#1153)
* Added mail settings attributes for bypass_spam_management, bypass_bounce_management and bypass_unsubscribe_management
#1135
* Documentation for bypass_spam_management, bypass_bounce_management and bypass_unsubscribe_management
* Review comments- Udated right summary from the api spec
Co-authored-by: Shwetha Radhakrishna <[email protected]>
Co-authored-by: Jennifer Mah <[email protected]>
Co-authored-by: Raghav Katyal <[email protected]>
Copy file name to clipboardexpand all lines: USAGE.md
+13-1
Original file line number
Diff line number
Diff line change
@@ -2444,6 +2444,9 @@ This endpoint allows you to send email over Twilio SendGrid's v3 Web API, the mo
2444
2444
* Top level parameters are referred to as "global".
2445
2445
* Individual fields within the personalizations array will override any other global, or message level, parameters that are defined outside of personalizations.
2446
2446
2447
+
* Note: bypass_bounce_management, bypass_spam_management, and bypass_unsubscribe_management cannot
2448
+
* be combined with bypass_list_management
2449
+
2447
2450
For an overview of the v3 Mail Send endpoint, please visit our [v3 API Reference](https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html)
2448
2451
2449
2452
For more detailed information about how to use the v3 Mail Send endpoint, please visit our [Classroom](https://sendgrid.com/docs/Classroom/Send/v3_Mail_Send/index.html).
// Copyright (c) Twilio SendGrid. All rights reserved.
3
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4
+
// </copyright>
5
+
6
+
usingNewtonsoft.Json;
7
+
8
+
namespaceSendGrid.Helpers.Mail
9
+
{
10
+
/// <summary>
11
+
/// Allows you to bypass the bounce list to ensure that the email is delivered to recipients. Spam report and unsubscribe lists will still be checked; addresses on these other lists will not receive the message.
12
+
/// </summary>
13
+
[JsonObject(IsReference=false)]
14
+
publicclassBypassBounceManagement
15
+
{
16
+
/// <summary>
17
+
/// Gets or sets a value indicating whether this setting is enabled.
// Copyright (c) Twilio SendGrid. All rights reserved.
3
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4
+
// </copyright>
5
+
6
+
usingNewtonsoft.Json;
7
+
8
+
namespaceSendGrid.Helpers.Mail
9
+
{
10
+
/// <summary>
11
+
/// Allows you to bypass the spam report list to ensure that the email is delivered to recipients. Bounce and unsubscribe lists will still be checked; addresses on these other lists will not receive the message.
12
+
/// </summary>
13
+
[JsonObject(IsReference=false)]
14
+
publicclassBypassSpamManagement
15
+
{
16
+
/// <summary>
17
+
/// Gets or sets a value indicating whether this setting is enabled.
// Copyright (c) Twilio SendGrid. All rights reserved.
3
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4
+
// </copyright>
5
+
6
+
usingNewtonsoft.Json;
7
+
8
+
namespaceSendGrid.Helpers.Mail
9
+
{
10
+
/// <summary>
11
+
/// Allows you to bypass the global unsubscribe list to ensure that the email is delivered to recipients. Bounce and spam report lists will still be checked; addresses on these other lists will not receive the message. This filter applies only to global unsubscribes and will not bypass group unsubscribes.
12
+
/// </summary>
13
+
[JsonObject(IsReference=false)]
14
+
publicclassBypassUnsubscribeManagement
15
+
{
16
+
/// <summary>
17
+
/// Gets or sets a value indicating whether this setting is enabled.
/// Gets or sets the bypass of spam report list to ensure that the email is delivered to recipients. Bounce and unsubscribe lists will still be checked; addresses on these other lists will not receive the message.
/// Gets or sets the bypass the bounce list to ensure that the email is delivered to recipients. Spam report and unsubscribe lists will still be checked; addresses on these other lists will not receive the message.
/// Gets or sets the bypass the global unsubscribe list to ensure that the email is delivered to recipients. Bounce and spam report lists will still be checked; addresses on these other lists will not receive the message. This filter applies only to global unsubscribes and will not bypass group unsubscribes.
Copy file name to clipboardexpand all lines: src/SendGrid/Helpers/Mail/SendGridMessage.cs
+57
Original file line number
Diff line number
Diff line change
@@ -860,6 +860,63 @@ public void SetBypassListManagement(bool enable)
860
860
return;
861
861
}
862
862
863
+
/// <summary>
864
+
/// Set the bypass spam management setting.
865
+
/// Allows you to bypass the spam report list to ensure that the email is delivered to recipients. Bounce and unsubscribe lists will still be checked; addresses on these other lists will not receive the message.
866
+
/// </summary>
867
+
/// <param name="enable">Gets or sets a value indicating whether this setting is enabled.</param>
/// Allows you to bypass the bounce list to ensure that the email is delivered to recipients. Spam report and unsubscribe lists will still be checked; addresses on these other lists will not receive the message.
885
+
/// </summary>
886
+
/// <param name="enable">Gets or sets a value indicating whether this setting is enabled.</param>
/// Set the bypass unsubscribe management setting.
903
+
/// Allows you to bypass the global unsubscribe list to ensure that the email is delivered to recipients. Bounce and spam report lists will still be checked; addresses on these other lists will not receive the message. This filter applies only to global unsubscribes and will not bypass group unsubscribes.
904
+
/// </summary>
905
+
/// <param name="enable">Gets or sets a value indicating whether this setting is enabled.</param>
0 commit comments