A
Antonio
Good morning, all...I am trying to code the sending of an
e-mail and I would like to include the "From" line. The
code I have is:
On Error GoTo Error_Handler
Dim objOutlook As Outlook.Application
Dim objEmail As Outlook.MailItem
Set objOutlook = CreateObject("Outlook.application")
Set objEmail = objOutlook.CreateItem(olMailItem)
With objEmail
.To = txtEmail
.CC = txtAltEmailAddress
.Subject = ""
.body = ""
.Send
End With
Exit_Here:
Set objOutlook = Nothing
Exit Sub
Error_Handler:
MsgBox Err & ": " & Err.Description
Resume Exit_Here
End Sub
Does anybody know? Thanks
e-mail and I would like to include the "From" line. The
code I have is:
On Error GoTo Error_Handler
Dim objOutlook As Outlook.Application
Dim objEmail As Outlook.MailItem
Set objOutlook = CreateObject("Outlook.application")
Set objEmail = objOutlook.CreateItem(olMailItem)
With objEmail
.To = txtEmail
.CC = txtAltEmailAddress
.Subject = ""
.body = ""
.Send
End With
Exit_Here:
Set objOutlook = Nothing
Exit Sub
Error_Handler:
MsgBox Err & ": " & Err.Description
Resume Exit_Here
End Sub
Does anybody know? Thanks