Smartform as email to external mail id
I have to send a smartform as an email to an external e-mail id. This has to be achieved through Action profile. I have created a Z-class by copying the class CL_DOC_PROCESSING_CRM_ORDER. I have attached my smartform name also to the action.
What code do I have to write to pass the external mail id??
Points will be rewarded generously for useful answers.
Thanks and regards