title: Not able to render mail content to html/text format in rails 4.0.8
body: <p>My mailer method given below(customer_mailer.rb)</p>
  
  <pre><code>      def X customer, message, cust_mail, email_subject
          subject = email_subject
          mail_ids=cust_mail.to_s.split(",")
          mail :subject =&gt; subject || "Your Invoice", :to =&gt; mail_ids, :body =&gt; message
  #mail :subject =&gt; subject || "Your Invoice", :to =&gt; mail_ids, :body =&gt; ERB.new(message).result(binding)
  
        end
  </code></pre>
  
  <p>my html view (X.html.erb)</p>
  
  <pre><code>&lt;html&gt;
  &lt;body bgcolor="#D6A1A1"&gt;
  
  &lt;table width="100%" bgcolor="#D6A1A1" cellpadding="10" cellspacing="0"&gt;
  
  &lt;/table&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I need to send mail with  content "message" through html format,if i am using commended line of code in my mailer method i can do it,but its alignment,content all are not proper,how can i solve this issue,waiting for your valuable information</p>