Packages

A Simple Client for interacting with OhMySmtp

Retired package: Security issue - credential leak

Current section

Files

Jump to
ohmysmtp_client lib email_send_request.ex
Raw

lib/email_send_request.ex

defmodule OhmysmtpClient.EmailSendRequest do
@moduledoc """
OhMySmtpCleint.EmailSendRequest to be used when calling send_email
## Examples
iex> %OhmysmtpClient.EmailSendRequest{
from: "elixir@example.com",
subject: "Test",
textbody: "from elixir",
to: "hex@example.com"
}
"""
@type t :: %__MODULE__{from: String.t, to: String.t, subject: String.t, textbody: String.t}
@derive Jason.Encoder
defstruct [:from, :to, :subject, :textbody]
end