MailSlurpAPI.Api.SentEmailsController (mailslurp v15.9.0)
API calls for all endpoints tagged SentEmailsController
.
Link to this section Summary
Functions
Delete all sent email receipts
Delete sent email receipt
Get all sent email tracking pixels in paginated form
Get raw sent email string. Returns unparsed raw SMTP message with headers and body. Returns a raw, unparsed, and unprocessed sent email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawSentEmailJson endpoint
Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format. Returns a raw, unparsed, and unprocessed sent email wrapped in a JSON response object for easier handling when compared with the getRawSentEmail text/plain response
Get sent email receipt
Get sent email HTML content
Get sent email URL for viewing in browser or downloading Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser.
Get all tracking pixels for a sent email in paginated form
Get all sent emails in paginated form
Get all sent organization emails in paginated form
Link to this section Functions
delete_all_sent_emails(connection, opts \\ [])
@spec delete_all_sent_emails(Tesla.Env.client(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Delete all sent email receipts
parameters
Parameters
- connection (MailSlurpAPI.Connection): Connection to server
- opts (KeywordList): [optional] Optional parameters
returns
Returns
} on success {:error, info} on failure
delete_sent_email(connection, id, opts \\ [])
@spec delete_sent_email(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Delete sent email receipt
parameters
Parameters
- connection (MailSlurpAPI.Connection): Connection to server
- id (String.t):
- opts (KeywordList): [optional] Optional parameters
returns
Returns
} on success {:error, info} on failure
get_all_sent_tracking_pixels(connection, opts \\ [])
@spec get_all_sent_tracking_pixels(Tesla.Env.client(), keyword()) :: {:ok, MailSlurpAPI.Model.PageTrackingPixelProjection.t()} | {:error, Tesla.Env.t()}
Get all sent email tracking pixels in paginated form
parameters
Parameters
- connection (MailSlurpAPI.Connection): Connection to server
- opts (KeywordList): [optional] Optional parameters
- :page (integer()): Optional page index in sent email tracking pixel list pagination
- :size (integer()): Optional page size in sent email tracking pixel list pagination
- :sort (String.t): Optional createdAt sort direction ASC or DESC
- :search_filter (String.t): Optional search filter
- :since (DateTime.t): Filter by created at after the given timestamp
- :before (DateTime.t): Filter by created at before the given timestamp
returns
Returns
} on success {:error, info} on failure
get_raw_sent_email_contents(connection, email_id, opts \\ [])
@spec get_raw_sent_email_contents(Tesla.Env.client(), String.t(), keyword()) :: {:ok, String.t()} | {:error, Tesla.Env.t()}
Get raw sent email string. Returns unparsed raw SMTP message with headers and body. Returns a raw, unparsed, and unprocessed sent email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawSentEmailJson endpoint
parameters
Parameters
- connection (MailSlurpAPI.Connection): Connection to server
- email_id (String.t): ID of email
- opts (KeywordList): [optional] Optional parameters
returns
Returns
} on success {:error, info} on failure
get_raw_sent_email_json(connection, email_id, opts \\ [])
@spec get_raw_sent_email_json(Tesla.Env.client(), String.t(), keyword()) :: {:ok, MailSlurpAPI.Model.RawEmailJson.t()} | {:error, Tesla.Env.t()}
Get raw sent email in JSON. Unparsed SMTP message in JSON wrapper format. Returns a raw, unparsed, and unprocessed sent email wrapped in a JSON response object for easier handling when compared with the getRawSentEmail text/plain response
parameters
Parameters
- connection (MailSlurpAPI.Connection): Connection to server
- email_id (String.t): ID of email
- opts (KeywordList): [optional] Optional parameters
returns
Returns
} on success {:error, info} on failure
get_sent_email(connection, id, opts \\ [])
@spec get_sent_email(Tesla.Env.client(), String.t(), keyword()) :: {:ok, MailSlurpAPI.Model.SentEmailDto.t()} | {:error, Tesla.Env.t()}
Get sent email receipt
parameters
Parameters
- connection (MailSlurpAPI.Connection): Connection to server
- id (String.t):
- opts (KeywordList): [optional] Optional parameters
returns
Returns
} on success {:error, info} on failure
get_sent_email_html_content(connection, id, opts \\ [])
@spec get_sent_email_html_content(Tesla.Env.client(), String.t(), keyword()) :: {:ok, String.t()} | {:error, Tesla.Env.t()}
Get sent email HTML content
parameters
Parameters
- connection (MailSlurpAPI.Connection): Connection to server
- id (String.t):
- opts (KeywordList): [optional] Optional parameters
returns
Returns
} on success {:error, info} on failure
get_sent_email_preview_ur_ls(connection, id, opts \\ [])
@spec get_sent_email_preview_ur_ls(Tesla.Env.client(), String.t(), keyword()) :: {:ok, MailSlurpAPI.Model.EmailPreviewUrls.t()} | {:error, Tesla.Env.t()}
Get sent email URL for viewing in browser or downloading Get a list of URLs for sent email content as text/html or raw SMTP message for viewing the message in a browser.
parameters
Parameters
- connection (MailSlurpAPI.Connection): Connection to server
- id (String.t):
- opts (KeywordList): [optional] Optional parameters
returns
Returns
} on success {:error, info} on failure
get_sent_email_tracking_pixels(connection, id, opts \\ [])
@spec get_sent_email_tracking_pixels(Tesla.Env.client(), String.t(), keyword()) :: {:ok, MailSlurpAPI.Model.PageTrackingPixelProjection.t()} | {:error, Tesla.Env.t()}
Get all tracking pixels for a sent email in paginated form
parameters
Parameters
- connection (MailSlurpAPI.Connection): Connection to server
- id (String.t):
- opts (KeywordList): [optional] Optional parameters
- :page (integer()): Optional page index in sent email tracking pixel list pagination
- :size (integer()): Optional page size in sent email tracking pixel list pagination
- :sort (String.t): Optional createdAt sort direction ASC or DESC
- :search_filter (String.t): Optional search filter
- :since (DateTime.t): Filter by created at after the given timestamp
- :before (DateTime.t): Filter by created at before the given timestamp
returns
Returns
} on success {:error, info} on failure
get_sent_emails(connection, opts \\ [])
@spec get_sent_emails(Tesla.Env.client(), keyword()) :: {:ok, MailSlurpAPI.Model.PageSentEmailProjection.t()} | {:error, Tesla.Env.t()}
Get all sent emails in paginated form
parameters
Parameters
- connection (MailSlurpAPI.Connection): Connection to server
- opts (KeywordList): [optional] Optional parameters
- :inbox_id (String.t): Optional inboxId to filter sender of sent emails by
- :page (integer()): Optional page index in inbox sent email list pagination
- :size (integer()): Optional page size in inbox sent email list pagination
- :sort (String.t): Optional createdAt sort direction ASC or DESC
- :search_filter (String.t): Optional search filter
- :since (DateTime.t): Filter by created at after the given timestamp
- :before (DateTime.t): Filter by created at before the given timestamp
returns
Returns
} on success {:error, info} on failure
get_sent_organization_emails(connection, opts \\ [])
@spec get_sent_organization_emails(Tesla.Env.client(), keyword()) :: {:ok, MailSlurpAPI.Model.PageSentEmailProjection.t()} | {:error, Tesla.Env.t()}
Get all sent organization emails in paginated form
parameters
Parameters
- connection (MailSlurpAPI.Connection): Connection to server
- opts (KeywordList): [optional] Optional parameters
- :inbox_id (String.t): Optional inboxId to filter sender of sent emails by
- :page (integer()): Optional page index in sent email list pagination
- :size (integer()): Optional page size in sent email list pagination
- :sort (String.t): Optional createdAt sort direction ASC or DESC
- :search_filter (String.t): Optional search filter
- :since (DateTime.t): Filter by created at after the given timestamp
- :before (DateTime.t): Filter by created at before the given timestamp
returns
Returns
} on success {:error, info} on failure