Skip to main content
View as Markdown

Message Lifecycle - Messaging

Message Lifecycle​

7.1 Bulk Message Status​

Each message/send call creates a bulk message that progresses through these states:

StatusDescription
sendingMessage is being processed and individual emails are being dispatched
completedAll individual emails have been processed
failedProcessing failed (check errorEnum and errorDescription)
canceledMessage was canceled before completion

7.2 Discrete Message Status​

Each recipient generates a discrete message with its own delivery lifecycle:

StatusDescription
sendingEmail queued for delivery
processedEmail accepted by the email provider
deliveredEmail delivered to recipient's mailbox
deferredDelivery delayed, will retry
droppedEmail dropped (invalid address, policy violation)
bounceEmail bounced (mailbox full, domain not found)
errorDelivery error

7.3 Engagement Tracking Events​

After delivery, these tracking events may update the discrete message status:

EventDescription
openRecipient opened the email
clickRecipient clicked a link in the email
spamreportRecipient reported the email as spam
unsubscribedRecipient unsubscribed via the email link

7.4 Discrete Error Codes​

ErrorDescription
emailNotResolvedToValidEmailAddressUser ID could not be resolved to an email
userUnsubscribeFromThisGroupUser unsubscribed from the message's unsubscribe group
userNotFoundInOurDbUser ID not found in the system
createMagicLinkFailedFailed to generate a magic login link
createUnsubscribeUriLinkFailedFailed to generate an unsubscribe link
createJwtQrCodeFailedFailed to generate a QR code
sendGridErrorEmail provider returned an error