You could do this with 4 things at no cost:
1) Blat: Win32 commandline SMTP mailer (
happy mailing : Blat online)
2) Task Scheduler
3) NT shell script (aka batch file)
4) SMTP host
Install Blat, I will assume it's 'c:\blat\blat.exe' as a generic default. I will use 'mail.my-isp.com' - this could be anything that works for you, you'll have to figure this info out -- it could even be your local Exchange server running SMTP.
Code:
@echo off
set EMAIL="my@email.com"
set SERVER="mail.my-isp.com"
set PORT="25"
set TEXT="c:\files\emailcontent.txt"
set FILE="c:\files\myfile.jpg"
set BLAT="c:\blat\blat.exe"
set MYDATE=%date:~-4,4%%date:~-7,2%%date:~-10,2%
set MYTIME=%time:~-0,2%%time:~+3,2%
set SUBJECT="JPG File: %MYDATE% %MYTIME%"
if exist %FILE% (
%BLAT% %TEXT% -to %EMAIL% -f %EMAIL% -s %SUBJECT% -server %SERVER% -p %PORT% -attach %FILE% -base64
if errorlevel 0 (
echo "File sent OK"
) else (
echo "Mailing error! Blat exit code: %ERRORLEVEL%"
)
) else (
echo "%FILE% not found!"
) Save that as "emailjpg.bat" in a folder, let's assume c:\files\ is where you save it; notice that TEXT points to a file that contains the text to be emailed, you'll need to create that file as well (it could be anything). FILE points at your JPG file in question; now set up your Task Scheduler to run this batch file every ten minutes and it will send you that JPG and have the date/time in the Subject: field for easy sorting and stuff.
NOTE: I wrote that script off the top of my head, not even running Windows so I can't test it 100%. But, it looks good on paper - you may have to tidy up a thing or two if it doesn't work right away, roll with the punches.