sendSmtpEnvelopeWithHttpInfo method
Future<Response>
sendSmtpEnvelopeWithHttpInfo(
- String inboxId,
- SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions
Send email using an SMTP mail envelope and message body and return sent confirmation
Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY.
Note: This method returns the HTTP Response
.
Parameters:
-
String inboxId (required): ID of the inbox you want to send the email from
-
SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions (required):
Implementation
Future<Response> sendSmtpEnvelopeWithHttpInfo(String inboxId, SendSMTPEnvelopeOptions sendSMTPEnvelopeOptions,) async {
// ignore: prefer_const_declarations
final path = r'/inboxes/{inboxId}/smtp-envelope'
.replaceAll('{inboxId}', inboxId);
// ignore: prefer_final_locals
Object? postBody = sendSMTPEnvelopeOptions;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}