How to see with AWS SES wether email was sent and received?

Viewed 27

I am using SotoSESV2 to send email though AWS SES.

https://github.com/soto-project/soto.git

API return email was successfully sent, but AWS SES dashboard is empty. How can I get a feedback about bouncing rate etc.

Some of our customer complain, they do not receive email. SES dashboard do not show anything.

enter image description here

It was never a problem with it but is it the right way to send email and handle error in Vapor / Swift / SOTO?

return ses.sendEmail(sendEmailRequest).flatMapAlways { re in
    print(re)
    fflush(stdout)
    switch re {
    case .success:
        print("Welcome message sent to: \(emailTo)")
        fflush(stdout)
        if let p = p {
            p.welcomeMessageSentAt = Date()
            return p.save(on: db)
        } else if let t = t {
            t.welcomeMessageSentAt = Date()
            return t.save(on: db)
        } else {
            print("Error, can not save welcomeMessageSentAt")
            fflush(stdout)
            return client.eventLoop.future()
        }
    case .failure:
        print("Error when sending welcome message")
        fflush(stdout)
        return client.eventLoop.future()
    }
}
0 Answers
Related