Hi / Hola Salamandra :
CdoSys tiene como enviar un archivo adjunto , eh intentado activar dicha funcion pero me da error, estoy investigando cual es la falla,apenas lo resuelva subo la modificacion.
Translate Google
CdoSys is to send an attachment, eh tried to activate this function but I get error, I am researching which is the fault, just upload the modified work it out.

- error.jpg (81.13 KiB) Viewed 7396 times
Code: Select all
loMsg := CREATEOBJECT ( "CDO.Message" )
WITH OBJECT loMsg
:Configuration := loCfg
:From := Main.cFrom.Value
:To := Main.cTo.Value // <----- Coloca aqui tu direcci¢n de correo
:Subject := "Prueba con DO"
:TextBody := Main.Contenido.Value
:AddAttachment := "c:\Main.prg" /*** Lineas a agregar ****/
:Send()
ENDWITH
Nota sobre archivos adjuntos : si se desea enviar varios archivos en el mismo mensaje , se debe ejecutar el método para cada archivo, por ejemplo :
CDO.AddAttachment (Adjunto 1)
CDO.AddAttachment (Adjunto 2)
CDO.AddAttachment (Adjunto 3)
... resto de código