Henrique_linck 0 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 Share this post Link to post Share on other sites
Henrique_linck 0 Posted September 27, 2019 Funciona pessoal, este codigo que coloquei já esta com tudo funcionando. Share this post Link to post Share on other sites
Jos 2,206 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. Share this post Link to post Share on other sites
Jos 2,206 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. Share this post Link to post Share on other sites
Henrique_linck 0 Posted September 27, 2019 Aprenda a pronunciar Sorry, the next will be Share this post Link to post Share on other sites