;A note on the mapisend command: ;If you are using the mapisend command to send an email through Outlook, you ;will need to use the name of the current mail profile as the logon name ;argument. To check this value, select the Tools | Options menu item within ;Outlook. then click on the Mail Services tab. If the Always use this profile ;radiobutton is selected, then the profile you need to use will be in the ;associated edit field. proc main string sMailLogon = "" ;Mail logon/profile name string sMailPassword = "" ;Not needed if using Exchange Server string sTo = "" ;Recipients as they appear in the Outlook address book or enter just email address string sCC = "" ;CC recipients string sBCC = "" ;BCC recipients string sSubject = "" ;Subject of the message string sContents = "" ;Points to a file containing the body of the email string sAttach = "" ;File(s) to attach to email string sMailError ;Holds any returned errors mapisend sMailLogon sMailPassword sTo sCC sBCC sSubject FILE sContents sAttach sMailError if success usermsg "Email sent successfully" ;Email sent successfully else errormsg "%s" sMailError ;Display error message endif endproc