title: Add attachment to recurring outlook email vbs
body: <p>first thing i'm not really a programmer and barely mange to finish this</p>
  
  <p>i wanted to send a recurring email using outlook so i google it and found this script that i write in notepad then save it in .vbs and the body of the message is using HTML and after that i make schedule task to be automatic.
  and it is really working fine with me but now i want to add an attachment to this email i searched hard but did not find anything that can work with this script and the big problem that most of the time i do not understand anything so i hope if someone can help me this is the script that i use</p>
  
  <pre><code>Dim olkApp
  Dim olkSes
  Dim olkMsg
  Set olkApp = CreateObject("Outlook.Application")
  Set olkSes = olkApp.GetNamespace("MAPI")
  olkSes.Logon olkApp.DefaultProfileName
  Set olkMsg = olkApp.CreateItem(0)
  With olkMsg
      'On the next line enter the email address of the person you want to send to'
      .Recipients.Add "to email"
      .Recipients.ResolveAll
      'On the next line enter the email subject'
      .Subject = "Reminder Email"
      'On the next line enter your message.  You can use HTML formatting.'
      .HTMLBody = "here i put my message using HTML"
          .Send
  End With
  Set olkMsg = Nothing
  olkSes.Logoff
  Set olkSes = Nothing
  Set olkApp = Nothing
  </code></pre>
  
  <p>i want to add attachment to this email can someone help me</p>