Henrique_linck Posted September 27, 2019 Posted September 27, 2019 (edited) 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 September 27, 2019 by JLogan3o13
Henrique_linck Posted September 27, 2019 Author Posted September 27, 2019 Funciona pessoal, este codigo que coloquei já esta com tudo funcionando.
Developers Jos Posted September 27, 2019 Developers Posted September 27, 2019 Moved to the appropriate forum. Moderation Team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Developers Jos Posted September 27, 2019 Developers Posted September 27, 2019 This is an English forum, so please post your questions in English. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Henrique_linck Posted September 27, 2019 Author Posted September 27, 2019 Aprenda a pronunciar Sorry, the next will be
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now