Premailex.HTTPAdapter.Httpc (Premailex v1.0.0)

Copy Markdown View Source

HTTP adapter module for making HTTP requests with :httpc.

SSL verification is enabled automatically when both :certifi and :ssl_verify_fun are present at compile time. Add them to your dependencies in mix.exs:

defp deps do
  [
    {:certifi, "~> 2.4"},
    {:ssl_verify_fun, "~> 1.1"}
  ]
end

If these dependencies are added after Premailex has been compiled, recompile Premailex to enable SSL verification support:

mix deps.compile premailex --force