Why do I receive default style emails in my mailbox despite styling them in the code? When I look at Gmail, it shows the default layout instead. Here is a snippet of my code:
!!!
%html
%head
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}
%title Purchase of Auto Parts
:css
body, td { background-color:#cecece; color:#000000; font-size:14px; font-family:Verdana,Helvetica,Arial; }
.blue { background-color: blue; height:2px; color: white; }
.notice {margin: 10px auto; background-color: #fbb752; border: 1px solid #cecece; }
%body
.blue
%h3
New Order
%b
Attention, a new order has been placed on the website!
= @order.id
.notice
%table
%tr
%th
Client ID
%th
Street
%th
Building
%th
Total Cost
%th
Status
%th
Opened
%tr
%td
= @order.user.id
= @order.user.email
%td
%b
= @order.street
%td
= @order.building
%td
%b
= @order.totalcost
%td
%b
= @order.orderstatus.name
%td
= @order.created_at
%br/
%table
%tr
%th
SKU
%th
Price
%th
Quantity
- @order.line_items.each do |l|
%tr{ :class => cycle("zebra-stripe zebra-grey zebra1", "zebra-stripe zebra-grey zebra2")}
%td
= l.description
%td
= l.price
%td
= l.quantity
How can I ensure that my mailer sends well-styled emails to my email service (Gmail) as seen in my code?