<%= if @email do %>
          
            
              
                
- From
 
                - <%= render_recipient(@email.from) %>
 
              
              
                
- To
 
                - <%= render_recipient(@email.to) %>
 
              
              
                
- Subject
 
                - 
                  <%= if @email.subject == "" do %>
                    No subject
                  <% else %>
                    <%= @email.subject %>
                  <% end %>
                
 
              
              
                
- Cc
 
                - <%= render_recipient(@email.cc) %>
 
              
              
                
- Bcc
 
                - <%= render_recipient(@email.bcc) %>
 
              
              
                
- Reply-to
 
                - <%= render_recipient(@email.reply_to) %>
 
              
              <%= for {name, value} <- @email.headers do %>
                
                  
- <%= name %>
 
                  - <%= value %>
 
                
              <% end %>
              <%= for {name, value} <- @email.provider_options do %>
                
                  
- <%= name %>
 
                  - <%= inspect(value) %>
 
                
              <% end %>
              
                
- Sent at
 
                
              
            
           
          <%= if @email.text_body do %>
            
              
                Text body
                
              
              ">
                <%= @email.text_body %>
              
             
          <% end %>
          <%= if @email.html_body do %>
            
          <% end %>
          <%= if length(@email.attachments) > 0 do %>
            
          <% end %>
        <% else %>
          <%= if length(@emails) == 0 do %>
            
              
                No mail? Guess it's just you and the bird.
                
               
             
          <% else %>
            
              
No message selected
            
          <% end %>
        <% end %>