Jump to content
Sign in to follow this  
Henrique_linck

Anexo no e-mail do Outlook. - (Moved)

Recommended Posts

prezados,

 

não consigo incluir anexo no envio do e-mail.

alguém que possa me ajudar, segue código:

 

Quote

 

I can't include an attachment in the email submission.

Someone who can help me follows code:

 

$sCorpo = "Prezado(a) Supervisor(a), bom dia.  <br/><br/> "
            $sAssunto = "PGE - teste"
            $emailAddress = 'luiz.alves@teste.com.br'
            $olApp = ObjCreate("Outlook.Application")
            $olMailItem = 0
            $objMail = $olApp.CreateItem($olMailItem)
            $objMail.Save
            Local $oAnexo = "C:\MONITORIA\RELATÓRIOS MIS\SMS REVERSO\PDF\LOJA-VILA-VELHA.pdf" ; não funciona
                  With $objMail
                .To =($emailAddress)
                .Subject = ($sAssunto)
                .HTMLBody = ($sCorpo)
                .Attachments.Add  ($oAnexo); não funciona
                .Send
            EndWith
            $oOApp = 0

 

E-MAILS.au3

Edited by JLogan3o13

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...