AWSSESServiceClient

public protocol AWSSESServiceClient

The AWS SES service client, which can be used to interact with AWS Simple Email Service (SES) via MongoDB Stitch.

  • Sends an email.

    Declaration

    Swift

    func sendEmail(to: String, from: String, subject: String, body: String, _ completionHandler: @escaping (StitchResult<AWSSESSendResult>) -> Void)

    Parameters

    to

    the email address to send the email to.

    from

    the email address to send the email from.

    subject

    the subject of the email.

    body

    the body text of the email.

    completionHandler

    The completion handler to call when the email is sent or the operation fails. This handler is executed on a non-main global DispatchQueue. If the operation is successful, the result will contain the result of the send request as an AWSSESSendResult.