topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Saturday December 14, 2024, 2:21 am
  • Proudly celebrating 15+ 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 3527 times)

parlay

  • Participant
  • Joined in 2013
  • *
  • default avatar
  • Posts: 1
    • View Profile
    • Donate to Member
Auto Email Screenshot
« on: April 24, 2013, 12:17 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,642
    • View Profile
    • Donate to Member
Re: Auto Email Screenshot
« Reply #1 on: April 24, 2013, 02:03 PM »

That's a fascinating feature (idea)!

x16wda

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 888
  • 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 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 PM by x16wda, Reason: forgot to mention the scheduled task... »

x16wda

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 888
  • 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 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 [email protected],[email protected] -subject "emailed web page" -from [email protected] -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