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
tothe email address to send the email to.
fromthe email address to send the email from.
subjectthe subject of the email.
bodythe body text of the email.
completionHandlerThe 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 anAWSSESSendResult.
AWSSESServiceClient Protocol Reference