function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RAMANJINEYULU GOGULARAMANJINEYULU GOGULA 

I have Email class file which sends email to dynamic users, I want to build visualforce page for that class file inorder to receive data from users.

In VF Page, I want these three fields ToAddress, Subject and Body.

I want to know how to integrate of this VF Page to the Email class file. 

If anyone have models, kindly let me know.
VineetKumarVineetKumar
Make your class as the controller for the VF page.
Or if using a standard controller, make your class as an extension

Reference :
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller.htm
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_custom.htm