 
       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"})
+        # Will use MyAppWeb.LayoutView with email.text template when rendering text emails
+        |> put_text_layout({MyAppWeb.LayoutView, "email.text"})
       end
   """
   def put_text_layout(email, layout) do


      def text_and_html_email_layout do
        new_email
        # Will use MyApp.LayoutView with the email.html template for html emails
        # and MyApp.LayoutView with the email.text template for text emails
        |> put_layout({MyApp.LayoutView, :email})
      end
  """
  def put_layout(email, {layout, template}) do


      def html_email_layout do
        new_email
        # Will use MyAppWeb.LayoutView with email.html template when rendering html emails
        |> put_html_layout({MyAppWeb.LayoutView, "email.html"})
      end
  """
  def put_html_layout(email, layout) do
