title: Remove Confirmation Box vbs script
body: <p>I have the following code where i could send mail through my configured outlook. 
  I can run this vbs using a rule in my outlook which in turn send a mail to the email specified in the script</p>
  
  <p>But i am getting a confirmation box asking a virus or not while running this script to send a mail.</p>
  
  <p>How to get rid of this confirmation box to make always allow to send mails.</p>
  
  <pre><code>   Dim ToAddress
  Dim MessageSubject
  Dim MessageBody
  Dim MessageAttachment
  
  Dim ol, ns, newMail
  
  ToAddress = "John.Smith@place.com"   ' change this...
  MessageSubject = "My Subject"
  MessageBody = "DATA"
  
  Set ol = WScript.CreateObject("Outlook.Application")
  Set ns = ol.getNamespace("MAPI")
  ns.logon "","",true,false
  Set newMail = ol.CreateItem(olMailItem)
  newMail.Subject = MessageSubject
  newMail.Body = MessageBody &amp; vbCrLf
  
  ' validate the recipient, just in case...
  Set myRecipient = ns.CreateRecipient(ToAddress)
  myRecipient.Resolve
  If Not myRecipient.Resolved Then
     MsgBox "unknown recipient"
  Else
     newMail.Recipients.Add(myRecipient)
     newMail.Send
  End If
  
  Set ol = Nothing
  </code></pre>