-
-
Save afquinterog/f8fa752b48cfa612530f915101393590 to your computer and use it in GitHub Desktop.
JAVA SES code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//GenericEmailService | |
message.addHeader("Content-ID", "INVITATION_CODE"); | |
// EmailDeliveryTrackService | |
List<Message> messages = sqs.receiveMessage(queueUrl).getMessages(); | |
messages.forEach( message -> { | |
String invitation = message.getHeaders().get("Content-ID"); | |
String notificationType = getNotificationType(message); // Bounce, Delivery | |
//Update invitation fields according notification type | |
//It seems we will need to include new fields on invitations table | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment