CDO email with signature

Post Reply
Wanderson
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

CDO email with signature

Post by Wanderson »

Hi,

I use CDO to send emails, is possible send with a signature, in this case a jpg image?

Thanks in advance.
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: CDO email with signature

Post by karinha »

Code: Select all

             IF IMAGEM = "S" // Assinatura Digital no Email. Joao

                // NO RODAPE DA MENSAGEM.. EU SOU PLORIDA,,, KKKKKKKKKKK
                oCfg:HTMLBody = "<p>"+ALLTRIM( cMsg )+"</p>" + "<p><img src='cid:id_imagen10'></p>"

                loBP := :AddRelatedBodyPart( cDirPleno + "\LOGO.JPG", "id_imagen10", 1)

                WITH OBJECT loBP:Fields // Assinatura Digital no Corpo do Email

                   // oCfg:Item("urn:schemas:mailheader:Content-ID") = "id_imagen10" // Asi, genera WARNINGS
                   oCfg:Item("urn:schemas:mailheader:Content-ID"):Value :=  "id_imagen10"  // Asi, no.

                   oCfg:Update()

                END WITH

             ENDIF
 
João Santos - São Paulo - Brasil
Wanderson
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: CDO email with signature

Post by Wanderson »

karinha wrote:

Code: Select all

             IF IMAGEM = "S" // Assinatura Digital no Email. Joao

                // NO RODAPE DA MENSAGEM.. EU SOU PLORIDA,,, KKKKKKKKKKK
                oCfg:HTMLBody = "<p>"+ALLTRIM( cMsg )+"</p>" + "<p><img src='cid:id_imagen10'></p>"

                loBP := :AddRelatedBodyPart( cDirPleno + "\LOGO.JPG", "id_imagen10", 1)

                WITH OBJECT loBP:Fields // Assinatura Digital no Corpo do Email

                   // oCfg:Item("urn:schemas:mailheader:Content-ID") = "id_imagen10" // Asi, genera WARNINGS
                   oCfg:Item("urn:schemas:mailheader:Content-ID"):Value :=  "id_imagen10"  // Asi, no.

                   oCfg:Update()

                END WITH

             ENDIF
 
It's work, thank you!
Post Reply