From the Embed Tree view select the code template
Fill in the prompts
see also:
GlobalCommunicationsSettings
SendReportOutputByEmail
SendEmailButtonControl
SendSMSButtonControl
SendSMSCodeTemplate
Email_and_SMS_from_hand-code