In .vm file, I am trying keep its format by using html as below and send it
to my yahoo and gmail accounts.

<table cellpadding="1" cellspacing="1" border="1" width="100%">
                        <tr>
                                <td>orderName</td>
                                <td>orderQuantity</td>
                        </tr>
               
                #foreach ($orderItem in $orderItems)
                        <tr>
                                <td>$orderItem.get(0)</td>
                                <td>$orderItem.get(1)</td>
                        </tr>
                #end
</table>

Problem is yahoo and gmail can't display html email properly and I have to
convert to plain text as below, which led to tab issue(I provide tab between
them). I am wondering how I can enforce elements shown like them in a "table
cell" in plain text. Thanks!

orderName orderQuantity
               
#foreach ($orderItem in $orderItems)
$orderItem.get(0) $orderItem.get(1)
#end
-- 
View this message in context: 
http://www.nabble.com/how-to-keep-format-in-velocity-file-tf2821666.html#a7875631
Sent from the Velocity - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to