soadfan
Member
- Outlook version
- Outlook 2013 64 bit
- Email Account
- Office 365 Exchange
I have this code, which is working fine, except if you don't have internet connection.
The problem is that Outlook doesn't send it when internet connection is back.
It doesn't appear in the Outbox folder either
So is there a way to send it automatically later?
The problem is that Outlook doesn't send it when internet connection is back.
It doesn't appear in the Outbox folder either
So is there a way to send it automatically later?
Code:
Private Sub Application_Startup()
Dim objMsg As MailItem
Set objMsg = Application.CreateItem(olMailItem)
With objMsg
.To = "name@domain.ext"
.CC = ""
.BCC = ""
.Subject = "Subject"
.Body = "Body"
.Send
End With
Set objMsg = Nothing
End Sub