MailSlurpAPI.Api.EmailController.get_email
You're seeing just the function
get_email
, go back to MailSlurpAPI.Api.EmailController module for more information.
Link to this function
get_email(connection, email_id, opts \\ [])
Specs
get_email(Tesla.Env.client(), String.t(), keyword()) :: {:ok, MailSlurpAPI.Model.Email.t()} | {:error, Tesla.Env.t()}
Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController. Returns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints
Parameters
- connection (MailSlurpAPI.Connection): Connection to server
- email_id (String.t): emailId
- opts (KeywordList): [optional] Optional parameters
} on success {:error, info} on failure