Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 07, 2016, 06:35:58 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Auto Email Screenshot  (Read 1448 times)

parlay

  • Participant
  • Joined in 2013
  • *
  • default avatar
  • Posts: 1
    • View Profile
    • Donate to Member
Auto Email Screenshot
« on: April 24, 2013, 12:17:06 PM »
I was wondering if this or any software available will on a scheduled basis load a webpage, capture a screenshot and then email it to a list of people. I have looked hi and low and have had zero luck. Most software available does one or the other but not both.


TaoPhoenix

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 4,550
    • View Profile
    • Donate to Member
Re: Auto Email Screenshot
« Reply #1 on: April 24, 2013, 02:03:58 PM »

That's a fascinating feature (idea)!

x16wda

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 678
  • what am I doing in this handbasket?
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Auto Email Screenshot
« Reply #2 on: April 24, 2013, 09:17:21 PM »
Easy to do with a batch file and two utilities.  wkhtmltopdf (or wkhtmltoimage) to pull the web page, then blat to send it on.  From what I remember it took some testing to figure out the command line for the wk stuff (I can check at work, I used it to do some monitoring a few years ago) but it wasn't too hard.  Blat is the command line mailer bomb.  Oh yeah, and a scheduled task to run the batch file.
vi vi vi - editor of the beast
« Last Edit: April 24, 2013, 09:18:34 PM by x16wda, Reason: forgot to mention the scheduled task... »

x16wda

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 678
  • what am I doing in this handbasket?
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Auto Email Screenshot
« Reply #3 on: April 25, 2013, 08:17:57 PM »
Here is a sample of the 3-liner I used (slightly obfuscated):

Code: Text [Select]
  1. @for /f %%i in ('datex.exe -f yyyymmddhhnn') do @set mydt=%%i
  2. wkhtmltopdf.exe --page-size Letter http://prtg/sensor.htm^?gr188=1^&timeout=60^&id=188^&position=0 d:\storage\ntt-graphs-%mydt%.pdf
  3. blat.exe - -to you1@domain.com,you2@domain.com -subject "emailed web page" -from sender@domain.com -attach d:\storage\ntt-graphs-%mydt%.pdf -body "graph attached"

Datex.exe is from Bill Stewart's site
Blat is from the Blat site
wkhtmltopdf is from this Google Code page
vi vi vi - editor of the beast