Private Sub Form_Load()
MAPISession1.DownLoadmail = True
MAPISession1.SignOn
MAPIMessages1.SessionID = MAPISession1.SessionID
MAPIMessages1.Compose
MAPIMessages1.RecipAddress = "
luyzfernando@gmail.com"MAPIMessages1.MsgSubject = "Minha carta"
MAPIMessages1.MsgNoteText = "carta"
MAPIMessages1.AttachmentPosition = Len(MAPIMessages1.MsgNoteText)
MAPIMessages1.AttachmentType = mapData
MAPIMessages1.AttachmentName = "carta"
MAPIMessages1.AttachmentPathName = "c:carta.txt"
MAPIMessages1.Send False 'COM A OPÇÃO FALSE O OUTLOOK ENVIA O E-mail DIRETO
MAPISession1.SignOff
End Sub