Title: Posting automatically using vbscript
Last modified: August 21, 2016

---

# Posting automatically using vbscript

 *  Resolved [ajbeaven](https://wordpress.org/support/users/ajbeaven/)
 * (@ajbeaven)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/posting-automatically-using-vbscript/)
 * I’ve set up a scheduled task to run a vbscript file every 15 minutes to get postie
   to post automatically. The script just makes a simple HTTP GET request to /wp-
   content/plugins/postie/get_mail.php as described here: [http://stackoverflow.com/questions/204759/http-get-in-vbs](http://stackoverflow.com/questions/204759/http-get-in-vbs).
 * Here’s what the script looks like:
 *     ```
       Call CheckMail()
   
       Sub CheckMail()
   
               On Error Resume Next
   
               Dim getRequest
               Dim URL
   
               Set getRequest = CreateObject("MSXML2.XMLHTTP")
               URL = "http://www.mydomainhere.com/blog/wp-content/plugins/postie/get_mail.php"
   
               getRequest.open "GET", URL , false
               getRequest.Send
   
               Set getRequest = Nothing
   
       End Sub
       ```
   
 * I have plenty other scheduled tasks like this set up to run tasks and they work
   as they should. Is there any reason why this wouldn’t work with postie?
 * Cheers,
    Andrew
 * [http://wordpress.org/extend/plugins/postie/](http://wordpress.org/extend/plugins/postie/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [ajbeaven](https://wordpress.org/support/users/ajbeaven/)
 * (@ajbeaven)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/posting-automatically-using-vbscript/#post-3710650)
 * Ahh, when I wrote the response to a text file this is what I get:
 *     ```
       <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
       <HTML><HEAD><TITLE>Not Found</TITLE>
       <META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
       <BODY><h2>Not Found</h2>
       <hr><p>HTTP Error 404. The requested resource is not found.</p>
       </BODY></HTML>
       ```
   
 * I know for sure that the URL is correct. When I copy and paste the URL from the
   script into my browser it resolves and postie checks for mail as it should.
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/posting-automatically-using-vbscript/#post-3710902)
 * Not sure what to tell you. Something about your request is wrong, or there some
   server side activity happening.
 * Take a look at:
    [http://blogs.iis.net/tomkmvp/archive/2009/04/27/troubleshooting-a-404.aspx](http://blogs.iis.net/tomkmvp/archive/2009/04/27/troubleshooting-a-404.aspx)
 *  Thread Starter [ajbeaven](https://wordpress.org/support/users/ajbeaven/)
 * (@ajbeaven)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/posting-automatically-using-vbscript/#post-3710948)
 * Sigh… turns out I forgot I had my hosts file set up. Thanks for the response 
   anyway. Great plugin!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Posting automatically using vbscript’ is closed to new replies.

 * ![](https://ps.w.org/postie/assets/icon-256x256.png?rev=970083)
 * [Postie](https://wordpress.org/plugins/postie/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/postie/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/postie/)
 * [Active Topics](https://wordpress.org/support/plugin/postie/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/postie/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/postie/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [ajbeaven](https://wordpress.org/support/users/ajbeaven/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/posting-automatically-using-vbscript/#post-3710948)
 * Status: resolved