-
Notifications
You must be signed in to change notification settings - Fork 575
Expand file tree
/
Copy pathSendGridStatusCode.cs
More file actions
105 lines (95 loc) · 4.27 KB
/
SendGridStatusCode.cs
File metadata and controls
105 lines (95 loc) · 4.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
namespace SendGrid.Helpers.Errors.Model
{
/// <summary>
/// Each SMTP call you make returns a response.
/// 200 responses are usually success responses, and 400 responses are usually deferrals.
/// SendGrid continues to retry resending 400 messages for up to 72 hours.
/// 500 responses are hard failures that are not retried by our servers.
/// </summary>
/// <remarks>
/// <see href="https://docs.sendgrid.com/for-developers/sending-email/smtp-errors-and-troubleshooting"/>.
/// </remarks>
public enum SendGridStatusCode
{
/// <summary>
/// Your mail has been successfully queued!
/// This response indicates that the recipient server has accepted the message.
/// </summary>
QueuedForDelivery = 250,
/// <summary>
/// This means the "from" address does not match a verified Sender Identity.
/// Mail cannot be sent until this error is resolved.
/// </summary>
/// <remarks>
/// To learn how to resolve this error, see our <see href="https://docs.sendgrid.com/for-developers/sending-email/sender-identity">Sender Identity requirements</see>.
/// </remarks>
InvalidFromAddress = 403,
/// <summary>
/// Messages are temporarily deferred because of recipient server policy - often it's because of too many messages or connections in too short of a timeframe.
/// </summary>
/// <remarks>
/// We continue to retry deferred messages for up to 72 hours.
/// Consider temporarily sending less messages to a domain that is returning this code because this could further delay your messages currently being tried.
/// </remarks>
MessagesDeferred = 421,
/// <summary>
/// The message failed because the recipient's mailbox was unavailable, perhaps because it was locked or was not routable at the time.
/// </summary>
/// <remarks>
/// We continue to retry messages for up to 72 hours.
/// Consider temporarily sending less messages to a domain that is returning this code because this could further delay your messages currently being tried.
/// </remarks>
MailboxUnavailable = 450,
/// <summary>
/// There is a credit limit of emails per day enforced in error.
/// </summary>
/// <remarks>
/// <see href="https://support.sendgrid.com/hc">Contact support</see> to remove that limit.
/// </remarks>
MaximumCreditsExceeded = 451,
/// <summary>
/// The message has been deferred due to insufficient system storage.
/// </summary>
/// <remarks>
/// We continue to retry messages for up to 72 hours.
/// </remarks>
TooManyRecipientsThisHour = 452,
/// <summary>
/// The user’s mailbox was unavailable.
/// Usually because it could not be found, or because of incoming policy reasons.
/// </summary>
/// <remarks>
/// Remove these address from your list - it is likely a fake, or it was mistyped.
/// </remarks>
InvalidMailbox = 550,
/// <summary>
/// The intended mailbox does not exist on this recipient server.
/// </summary>
/// <remarks>
/// Remove these addresses from your list.
/// </remarks>
UserDoesNotExist = 551,
/// <summary>
/// The recipients mailbox has exceeded its storage limits.
/// </summary>
/// <remarks>
/// We don't resend messages with this error code because this is usually a sign this is an abandoned email.
/// </remarks>
MailboxIsFull = 552,
/// <summary>
/// The message was refused because the mailbox name is either malformed or does not exist.
/// </summary>
/// <remarks>
/// Remove these addresses from your list.
/// </remarks>
InvalidUser = 553,
/// <summary>
/// This is a default response that can be caused by a lot of issues.
/// </summary>
/// <remarks>
/// There is often a human readable portion of this error that gives more detailed information, but if not,
/// remove these addresses from your list.
/// </remarks>
MailRefused = 554,
}
}