Check this sample code to send email using visualforce email template - http://developer.force.com/cookbook/recipe/creating-email-templates-and-automatically-sending-emails
There is a salesforce limit for Visualforce Templates that you can use only SingleEmailMessage with it NOT MassEmail That means you cannot send mass Email using vf page
Hi Sekhara,
There is a salesforce limit for Visualforce Templates that you can use only SingleEmailMessage with it NOT MassEmail
That means you cannot send mass Email using vf page
Please go through this dos
http://www.salesforce.com/docs/developer/pages/Content/pages_email_templates_creating.htm
Regards,
Abhi Tripathi
Blog : http://abhithetechknight.blogspot.in/