• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 167
  • Last Modified:

How can I turn off the "This may be a virus" alert?

I have this outlook script...

Private Sub CommandButton1_Click()

'Create Email Button
Call AddAttachment

End Sub
Sub AddAttachment()
    Dim X As Integer
    Dim strFile As String
    Dim strRTVNum As String
    Dim myOlApp As New Outlook.Application
    Dim myItem As Outlook.MailItem
    Dim myAttachments As Outlook.Attachments
    Set FileSys = New FileSystemObject
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set Folder = fso.GetFolder("E:\RTV\Batch")
    Set Files = Folder.Files
    On Error Resume Next
    For Each File In Files
        Set myItem = myOlApp.CreateItem(olMailItem)
        Set myAttachments = myItem.Attachments
        strFile = File.Name & ""
            For X = 1 To Len(strFile)
                If Mid(strFile, X, 1) = " " Then
                    strRTVNum = Left(strFile, X - 1)
                    Exit For
                End If
            Next X
        myItem.To = "someone@somewhere.com"
        myItem.Subject = strRTVNum
        myItem.Body = ""
        myAttachments.Add "E:\RTV\Batch\" + strFile, olByValue, 1, ""
        UserForm1.Hide
        myItem.Display
        myItem.Send
        myAttachments(1).Delete
    Next
End Sub

When I send it, I get this ALERT this may be a virus trying to automatically send out email through your system. Then after about 8 seconds I have a YES button that becomes activated and I can click it to send the email. Well, as you can assume, there is often about 80 files that I am having to send using this method and clicking YES every 8 seconds is driving me nuts. How do I get around this?

Thanks much.
TJ
0
TJenner2
Asked:
TJenner2
1 Solution
 
nltechCommented:
you gotta love microsoft's "dumb it down" security methods... keeping people from using their computers the way they need to.

see this paq for some ideas..
http://www.experts-exchange.com/Applications/MS_Office/Outlook/Q_21546248.html

see also this reference:
http://www.outlookcode.com/d/sec.htm
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now