oOutlook = Createobject("Outlook.application") oSafeItem = Createobject("Redemption.SafeMailItem") oNameSpace = oOutlook.GetNameSpace( "MAPI" ) oDrafts = oNameSpace.GetDefaultFolder(16) oInbox = oNameSpace.GetDefaultFolder(6) oMailS = oOutlook.CreateItem( 0 ) oSafeItem.Item = oMailS oSafeItem.subject = xsubject oSafeItem.Body = xbody xrecipient = "" oSafeItem.Recipients.Add(xrecipient) *********oSafeItem.SentOnBehalfOfName = "Kellyl@apexmedia.com" fname = xpdf + ".pdf" oSafeItem.Attachments.Add( (fname) ) oSafeItem.Save oUtils = Createobject("redemption.MAPIUtils") IF !EMPTY(thisform.pageframe1.page1.cbxPreviewPDFs.Value) rptpath = xpdf +".pdf" && ALWAYS PREVIEW !/N "C:\Program Files\Adobe\Acrobat 7.0\Reader\acroRd32.exe" &rptpath ENDIF IF EMPTY(thisform.pageframe1.page1.cbxNotify.Value) && display on each? ELSE If !oSafeItem.Recipients.ResolveAll() && yes IF Messagebox(ALLTRIM(msgbox_na) +CHR(13)+ ; "The EMAIL needs a Recipient." +CHR(13)+; "YES = Let me see it Now" +CHR(13)+; "NO = I'll Resolve it Later",36, " Attention!") =6 &&YES SET STEP ON * oDrafts.Display * oMsg =oSafeItem.Items.GetFirst() oMsg =oDrafts.Items.GetFirst =oMsg.Display