public class SendMessageOperation
extends com.mulesoft.connectivity.rest.commons.api.operation.BaseRestOperation
| Constructor and Description |
|---|
SendMessageOperation() |
| Modifier and Type | Method and Description |
|---|---|
void |
sendEmail(com.mulesoft.connectivity.rest.commons.api.configuration.RestConfiguration config,
com.mulesoft.connectivity.rest.commons.api.connection.RestConnection connection,
List<String> recipients,
String subject,
org.mule.runtime.api.metadata.TypedValue<String> body,
List<EmailAttachment> attachments,
com.mulesoft.connectivity.rest.commons.api.operation.EntityRequestParameters parameters,
com.mulesoft.connectivity.rest.commons.api.operation.ConfigurationOverrides overrides,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes> completionCallback)
Sends the specified message to the recipients in the
To, Cc, and
Bcc headers. |
addParameterToBindingContext, doRequest, doVoidRequest, getDefaultResponseMediaType, getExpressionLanguage, getRequestBindings, getRequestBodyDataType, getRequestBuilderWithBindings, getResponseBindings, resolveDefaultResponseMediaType, withMultipart@Ignore @Throws(value=com.mulesoft.connectivity.rest.commons.api.error.RequestErrorTypeProvider.class) @DisplayName(value="Send email") @Summary(value="Sends the specified message to the recipients in the <code>To</code> headers.") @SampleData(value=SendMessageSampleDataProvider.class) @OutputResolver(output=SendMessageOutputMetadataResolver.class) @MediaType(value="application/json") public void sendEmail(@Config com.mulesoft.connectivity.rest.commons.api.configuration.RestConfiguration config, @Connection com.mulesoft.connectivity.rest.commons.api.connection.RestConnection connection, @DisplayName(value="Recipients") @Summary(value="Email address of the recipients.") List<String> recipients, @DisplayName(value="Subject") @Summary(value="Subject of the email.") String subject, @DisplayName(value="Body") org.mule.runtime.api.metadata.TypedValue<String> body, @NullSafe @Optional @DisplayName(value="Attachment list") @Summary(value="Attachment List") List<EmailAttachment> attachments, @ParameterGroup(name="Request Parameters") com.mulesoft.connectivity.rest.commons.api.operation.EntityRequestParameters parameters, @ParameterGroup(name="Connector Overrides") com.mulesoft.connectivity.rest.commons.api.operation.ConfigurationOverrides overrides, org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper, org.mule.runtime.extension.api.runtime.process.CompletionCallback<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes> completionCallback)
To, Cc, and
Bcc headers.
This operation makes an HTTP POST request to the /gmail/v1/users/{userId}/messages/send endpoint returns the emailId of the sent message
config - the configuration to useconnection - the connection to useparameters - the EntityRequestParametersoverrides - the ConfigurationOverridesstreamingHelper - the StreamingHelperCopyright © 2023 MuleSoft, Inc.. All rights reserved.