You need to sign in to do that
Don't have an account?
learner4
how to send an mail with body displaying visualforce page
i am displaying the event meeting details in the visual force page inside an html table. I want the same to be displayed as the body of the mail. i dont want it to be in the attachments of the mail.
Eric.He
Try this: Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); PageReference pageRef = new PageReference('/apex/YOUR_VF_NAME'); String content = String.valueOf(pageRef.getContent()); mail.setBody(content);