Karun AB

My e-home for dev work.

Monday, October 29, 2007

Command Line e-mailing

Ever wanted to send a quick email but then though, “nah.. cba to open my inbox right now”?

Now you can send emails via command line! It doesn’t have to be installed though you could do so if you please. I give you Blat!

Here is a simple example from the documentation:

@echo off
:::::::::::::: Lets set some variables ::::::::::::::
set eMail=tim@blat.tld
set subj=-s “Test Blat”
set server=-server localhost
set x=-x “X-Header-Test: Can Blat do it? Yes it Can!”
set debug=-debug -log blat.log -timestamp
::::::::::::::::: Now we run Blat! :::::::::::::::::
blat %0 -to %eMail% -f %eMail% %subj% %server% %debug% %x%

posted by Karun at 2:10 pm 

category: Review
tags:

1 Comment »

  1. too complex :(

    /me would rather just open php and use mail() :P

    Comment by dt — November 8, 2007 @ 1:00 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

All information on this site is © 2006 - 2009 of Karun AB.
Hamsters ran 18 miles to bring this page to you in 1.309 seconds.