Scheduling E-mailer

While authoring a script recently on Windows XP, which was to be executed by windows scheduler, I used a tool called “Blat” (already in use in one of the application in our group) which helps in sending email. On command line, the syntax would be like the one below: 

C:\> blat –to <To Email Adress> -from <From Email Adress> -server <SMTP Server Name> -body “<body text>” –subject “<Subject>”  
For further details, refer to http://www.blat.net  
On Windows XP, I had to write a ".bat" file and schedule it in Scheduled Tasks option. However, on Windows 7, there are in-built option for scheduling of sending emails. 

1. Go to Control Panel -> Scheduled Task -> Create Basic Task
2. Specify the Trigger i.e. when to run the task (Date, time, recurrence etc.)
3. In Action, there are 3 options:

        Start a Program    // Will execute any program
          Send an email    // Will send an email
        
Display a message  //displays a message on desktop

4. Specify the correct attributes, and you are done !!















[This blog was posted on my official site on Oct 30 2010]

Comments

Popular posts from this blog

Sequence.nextval can really deceive you !!

Traps in Decision Making

Attractive Reports from SQLPLUS