how to send ssrs report to email using x++?

Hi all

how to send ssrs report to email using x++?

when clicking on OK button. it is not mailing me.