public class SendEmailApi.APIsendEmailRequest extends Object
public SendEmailApi.APIsendEmailRequest cc(String cc)
cc - CC recipient email address. (optional)public SendEmailApi.APIsendEmailRequest bcc(String bcc)
bcc - BCC recipient email address. (optional)public SendEmailApi.APIsendEmailRequest text(String text)
text - Body of message. (optional)public SendEmailApi.APIsendEmailRequest bulkId(String bulkId)
bulkId - The ID uniquely identifies the sent Email request. This filter will enable you
to query delivery reports for all the messages using just one request. You will receive a
bulkId in the response after sending an Email request. If you don't set your own
bulkId, unique ID will be generated by our system and returned in the API response.
(Optional Field) (optional)public SendEmailApi.APIsendEmailRequest messageId(String messageId)
messageId - The ID that uniquely identifies the message sent for a recipient. (Optional
Field) (optional)public SendEmailApi.APIsendEmailRequest templateid(Integer templateid)
templateid - Template identifier based on which the email message is generated. The
template is created over Infobip web interface. If templateId is present then html and
text values are ignored. NOTE : This field supports value of broadcast templateId only.
Content templateId is not supported. (optional)public SendEmailApi.APIsendEmailRequest attachment(File attachment)
attachment - File attachment (optional)public SendEmailApi.APIsendEmailRequest inlineImage(File inlineImage)
inlineImage - Using an inline image, it is possible to insert the image file inside the
HTML code of the email by using cid:FILENAME instead of providing any external link to
image. (optional)public SendEmailApi.APIsendEmailRequest HTML(String HTML)
HTML - HTML body of the message. If HTML and text fields are present, text field will be
ignored and HTML will be delivered as message body. (optional)public SendEmailApi.APIsendEmailRequest replyto(String replyto)
replyto - Email address to which recipients of the email can reply. (optional)public SendEmailApi.APIsendEmailRequest defaultplaceholders(String defaultplaceholders)
defaultplaceholders - Default placeholder values used for all recipients. The values are
used to generate the email message. (optional)public SendEmailApi.APIsendEmailRequest preserverecipients(Boolean preserverecipients)
preserverecipients - This parameter enables preserving To recipients for an email when
value is true, default value is false for this parameter. (optional)public SendEmailApi.APIsendEmailRequest trackingUrl(String trackingUrl)
trackingUrl - The URL on your callback server on which the open and click notifications
will be sent. If you are passing this parameter then track=true will be assigned,
you don't need to pass track=true separately. See the section \\\"Tracking
Notifications\\\" below for details. (optional)public SendEmailApi.APIsendEmailRequest trackclicks(Boolean trackclicks)
trackclicks - This parameter enables or disables track click feature. (optional)public SendEmailApi.APIsendEmailRequest trackopens(Boolean trackopens)
trackopens - This parameter enables or disables track open feature. (optional)public SendEmailApi.APIsendEmailRequest track(Boolean track)
track - Enable or disable open and click tracking.Default value is true. Passing true
will only enable tracking and the statistics would be visible in web interface alone.
This can be explicitly overridden by trackopens and trackclikcs. (optional)public SendEmailApi.APIsendEmailRequest callbackData(String callbackData)
callbackData - Additional client data that will be sent on the notifyUrl. The maximum
value is 4000 characters. (optional)public SendEmailApi.APIsendEmailRequest intermediateReport(Boolean intermediateReport)
intermediateReport - The real-time Intermediate delivery report that will be sent on
your callback server. (optional)public SendEmailApi.APIsendEmailRequest notifyUrl(String notifyUrl)
notifyUrl - The URL on your callback server on which the Delivery report will be sent.
(optional)public SendEmailApi.APIsendEmailRequest notifyContentType(String notifyContentType)
notifyContentType - Preferred Delivery report content type. Can be application/json or
application/xml. (optional)public SendEmailApi.APIsendEmailRequest sendAt(OffsetDateTime sendAt)
sendAt - To schedule message at a given time in future. Time provided should be in UTC
in following format: yyyy-MM-dd'T'HH:mm:ss.SSSXXX. (optional)public SendEmailApi.APIsendEmailRequest landingPagePlaceholders(String landingPagePlaceholders)
landingPagePlaceholders - Personalize opt out landing page by inserting placeholders.
Insert placeholder or tag while designing landing page. (optional)public SendEmailApi.APIsendEmailRequest landingPageId(String landingPageId)
landingPageId - Opt out landing page which will be used and displayed once end user
clicks unsubscribe link. If not present default opt out landing page will be displayed.
Create landing page on IB’s portal and use last 6 digits from URL to use that opt out
page. (optional)public okhttp3.Call buildCall(ApiCallback _callback) throws ApiException
_callback - ApiCallback API callbackApiException - If fail to serialize the request body objectpublic EmailSendResponse execute() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response bodypublic ApiResponse<EmailSendResponse> executeWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the
response bodypublic okhttp3.Call executeAsync(ApiCallback<EmailSendResponse> _callback) throws ApiException
_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body
objectCopyright © 2022. All rights reserved.