« Return to Thread: 2K3 batch file to send alert

Re: 2K3 batch file to send alert

by Dr Skip :: Rate this Message:

Reply to Author | View in Thread

James,
I'll assume you know blat and are looking for the way to make it work with
gmail... ;) I use another provider, but a quick Scroogle (scroogle.org ;) gave
some good answers.

The first is a program somewhat like blat but will handle the encryption.
The second is a discussion about the issues and using mailsend (from link 1).
The last is detailed instructions on using blat with gmail using stunnel.

I would use either, but have your 'problem' run a bat file which uses > (and
echo) to send time, date, and what it sees (env vars having been set, etc) to a
log file at each point along the way. Very easy to debug then.

There is another program -freeware- I use extensively called filenotify.exe
that will trigger on a file change, write, etc in a dir (you set the
parameters). I then can send an email based on a file being appended to,
created, etc. For instance, on a private secure email server, it can trigger a
blat email to send an sms msg to the user saying something arrived by watching
the spool dir...

Tell me if you need more. The 3 items are:

=======================================================================================

http://www.muquit.com/muquit/software/mailsend/mailsend.html

========================================================================================


http://groups.google.com/group/Gmail-ABCs/browse_thread/thread/191506699330a069/7434d0b668b528e0?lnk=raot

========================================================================================
 From http://www.freepowerboards.com/yqb/yqb-about90.html :

1. install sstunnel from <a
href="http://www.stunnel.org/download/binaries.html">http://www.stunnel.org/download/binaries.html?lt;/ 
a>
2. Using a text editor like notepad, make a file containing what's in the text
box below. Click the Select text button to highlight the text. Note: Javascript
must be enabled for the button to work. Copy the information to your clipboard
by right clicking on the highlighted text and selecting Copy. Paste the
information into notepad. Note: Be sure that wordwrap is turned OFF. Save the
file as "stunnel.conf" (including the quotes if you're using notepad) and place
it in the C:\stunnel folder. Note: The quotes prevent notepad from adding .txt
to the end of the filename.
----------------------------------------------------------------
client = yes

[nntp]
accept = 119
connect = inetnews.worldnet.att.net:563

[pop3]
accept = 110
connect = ipostoffice.worldnet.att.net:995

[smtp]
accept = 25
connect = smtp.gmail.com:465
--------------------------------------------------------------------

3. blat

blat 1.txt -to johnyan.ca@... -f johnyan.ca@... -server 127.0.0.1
-port 25 -u johnyan.ca -pw 123465

Blat v2.6.1 w/GSS encryption (build : Nov 18 2006 11:59:59)

Sending 1.txt to johnyan.ca@...
Login name is johnyan.ca@...
Error: Connection to server was dropped.

4. Check your gmail. Hehe, you received a email!
=================================================================================


James Newton wrote:

> The gmail server is a point I hadn't considered... Great idea... I guess I
> should get with the program and get a gmail account. I have been using
> yahoo, but they require all sorts of security and pop before smtp garbage.
>
> Can you share your blat setup for gmail? Without your password and email
> included of course.
>
> --
> James.
>
--
http://www.piclist.com PIC/SX FAQ & list archive
View/change your membership options at
http://mailman.mit.edu/mailman/listinfo/piclist

 « Return to Thread: 2K3 batch file to send alert