Search:
 
Home
Internet / Send mail through the MS Outlook / /

Send E-mails through Microsoft Outlook

*strProfile = "username" && necessary case.

*strPassword = "password" && necessary case

strRecipient = "rafael@reitech.com.br"

strSubject = "Assunto - testando"

strBody = "Aqui vai a mensagem"

theApp = CreateObject("Outlook.Application")

theNameSpace = theApp.GetNameSpace("MAPI")

*theNameSpace.Logon(strProfile , strPassword) && se necessário

theMailItem = theApp.CreateItem(0)

theMailItem.Recipients.Add( strRecipient )

theMailItem.Subject = strSubject

theMailItem.Body = strBody

theMailItem.Send

theNameSpace.Logoff

 

    Um abraço,
    Rafael Lippert - rafael@reitech.com.br

 

Author:Desconhecido
Similar topics
Internet :
Documento sem título

Rafael Lippert
rafaellippert@gmail.com