Código: Selecionar todos
WITH OBJECT oMsg
:MDNRequested = .T.
:Configuration = oCfg
:From = cFrom
:To = aTo[i]
:CC = aCC
:BCC = aBCC
:Subject = cSubject
:Sender = cdpar000->fantasia
:ReplyTo = cFrom
:Organization = cdpar000->razao
if !uso
cMsg = strtran( cMsg, chr(13)+chr(10) , '<br>' )
:HTMLBody = "<h3>"+cMsg+"</h3>"
else
:TextBody = cMsg
endif
For x := 1 To Len( aFiles )
:AddAttachment(AllTrim(aFiles[x]))
Next
IF vEMAIL_CONF
:Fields("urn:schemas:mailheader:disposition-notification-to"):Value:= cFrom
:Fields("urn:schemas:mailheader:return-receipt-to"):Value:= cFrom
ENDIF
:Fields:update()
:Send()
END WITH


