... ) and works great .Use Clickyes (Read this article http://www.contextmagic.com/express-clickyes/) software too if you like the below code function SendMail(cText,ato,cSubject,afiles,bodyformat,mailfrom) local oMail,i:=0,oItem default bodyformat:=1 oMail:= CREATEOBJECT( "outlook.application" ) oItem:=oMail:createitem(0) ...