   _Make assigns available to a template during render call._
 
       defmodule MyApp.Email do
-        use Bamboo.Phoenix, view: MyApp.EmailView
+        use Bamboo.Phoenix, view: MyAppWeb.EmailView
 
         def welcome_email(user) do
           new_email()
-          |> put_html_layout({MyApp.LayoutView, "email.html"})
+          |> put_html_layout({MyAppWeb.LayoutView, "email.html"})
           |> render(:welcome, user: user)
         end
       end


      def text_email_layout do
        new_email
        # Will use MyApp.LayoutView with email.text template when rendering text emails
        |> put_text_layout({MyApp.LayoutView, "email.text"})
      end
  """
  def put_text_layout(email, layout) do

  _Render both text and html emails without layouts._

      defmodule MyApp.Email do
        use Bamboo.Phoenix, view: MyAppWeb.EmailView

        def welcome_email do
          new_email()
