+ Start a Discussion
buggs sfdcbuggs sfdc 

Need Messaging.SingleEmailMessage in table Fomat

HI Experts,

Can i get any help in doing some HTML code on apex messages,its so simple but some how am not able to get it, below apex message i wanted to be in a table format this is what am trying,but not able crack,according to my code i cannot use any Email Templates,any help greatly appreciated
emailBody += <html><body> Hi ,<br/><br/><h4>Automated mail for the Field updates -</h4><table style="width:100%">+'\N'+ type + ' : \N '+'</table></body></html>';
                               //for new fields
                             for(Field f : bkupnewFields.values()) 
                    emailBody += f.apiName + ' with datatype '+f.dataType+' is newly created.\n';

 /*** Sending Email ***/
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
 List<String> emails =  new List<String>();emails.addAll(system.label.Dev_Admin.split(';'));
        //mail.setToAddresses(new List<String>{.split(';')});
              mail.setSubject('Fields Update');
             update objectInfoMap.values();
             Messaging.sendEmail(new Messaging.SingleEmailMessage[]{mail});

Thans in advance!
can u check it once if u r:-

hi can u help me when mt batch runs its shows 
View | Download | DeleteAGL AdminApiUnknownSerialBatchApexRangeChunkHandlerSuccess1211,12611/08 00:11:36
View | Download | DeleteAGL AdminApiUnknownBatch ApexSuccess1131,12611/08 00:11:36
View | Download | DeleteAGL AdminApiUnknownSerialBatchApexRangeChunkHandlerSuccess7854811/08 00:11:36
View | Download | DeleteAGL AdminApiUnknownSerialBatchApexRangeChunkHandlerSuccess4054911/08 00:11:36
View | Download | DeleteAGL AdminApiUnknownBatch ApexSuccess871,56711/08 00:11:35
BR M 8BR M 8
Use    mail.setHTMLbody();     instead of     mail.setPlainTextBody(emailBody);