T
tiger
Hi,
I embed the code below in my button click, so that when the button is click
an email will be send but....How do I get rid of the pop up message from
outlook "Microsoft Office Outlook: A Program is trying to automatically send
e-mail on your behalf. Do you want to allow this? If this is unexpected, it
may be a virus and you should chose 'No'".
Dim olApp As Outlook.Application
Dim olMsg As Outlook.MailItem
Set olApp = new outlook.MailItem
Set olMsg = CreateItem(olMailItem)
With olMsg
.To = EmailAddress
.Subject = "Yo"
.Body = "Hey now"
.Send
End With
Thanks
Tiger
I embed the code below in my button click, so that when the button is click
an email will be send but....How do I get rid of the pop up message from
outlook "Microsoft Office Outlook: A Program is trying to automatically send
e-mail on your behalf. Do you want to allow this? If this is unexpected, it
may be a virus and you should chose 'No'".
Dim olApp As Outlook.Application
Dim olMsg As Outlook.MailItem
Set olApp = new outlook.MailItem
Set olMsg = CreateItem(olMailItem)
With olMsg
.To = EmailAddress
.Subject = "Yo"
.Body = "Hey now"
.Send
End With
Thanks
Tiger