I'm using this code to send an email. How do i disable the outlook message
A program is trying to automatucally send e-mail on you behalf. Do you want to allow it.
Dim OutApp As Object
Dim OutMail As Object
Dim strbody As String
Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)
'On Error Resume Next
With OutMail
.To = "russell.flynn@uk.ngrid.com"
.CC = ""
.BCC = ""
.Subject = "Test"
.Body = "This is a test"
.Send 'or use .Display
.ReadReceiptRequested = True
End With
A program is trying to automatucally send e-mail on you behalf. Do you want to allow it.
Dim OutApp As Object
Dim OutMail As Object
Dim strbody As String
Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)
'On Error Resume Next
With OutMail
.To = "russell.flynn@uk.ngrid.com"
.CC = ""
.BCC = ""
.Subject = "Test"
.Body = "This is a test"
.Send 'or use .Display
.ReadReceiptRequested = True
End With