We have an option of sending mails in SAP. You can check it in SAP menu-> Office-> Folders. Once you opt for any of the options there, it will take you to a new screen where you can see a button 'New Message'. Just go into debug mode & try to track the main method for that. You can simulate same thing in your case also.