Blat simplifies the command line by storing any or all of the following in the regestry [HKEY_LOCAL_MACHINE \ SOFTWARE \ Public Domain \ Blat].
SMTP Server Address
Sender's Address
Number of times to retry sending
Port number to use (ie, if not the SMTP default of 25)
The -q switch which "supresses *all* output"
You need to use -install so that blat can recognize your SMTP server.
Blat -install smtphost..mymail.com test@mymail.com // Sets host and userid
Blat -install smtphost..mymail.com test // Sets host and userid
Blat -install smtphost..mymail.com // Sets host only
Now, you can use blat to send attachments via emails from your command prompt. This is helpful, when you want to send backup logs to emails.
Blat C:\test.txt -to tested@mymail.com -server smtphost..mymail.com -f test@mymail.com
For more information on how to use Blat, check out www.blat.net
No comments:
Post a Comment