MailCMD Version 1.1

mailcmd
-inputfile "input file name - You can put all the info. such as server port .... in a file as input."
-server "mail server"
-port "port #"
-from "sender mail address.This is used as logon smtp server if needed"
-pass "logon smtp server password"
-to "to mail list. separated by , for multiple"
-cc "cc mail list. separated by , for multiple"
-bcc "bcc mail list. separated by , for multiple"
-subject "mail subject"
-body "mail body text"
-textbody "filename - text body read from file. specify one of textbody,htmlbody or body"
-htmlbody "filename - html body read from file. specify one of textbody,htmlbody or body"
-attachment "filename with absolute path"
-auth "1 or 0. 1 for logon and password required by SMTP.No specify will be 1"
-ssl "1 or 0. 1 for SSL. No specify will be 1"

กก

Usage 1 : All input from command prompt. Using Hotmail Server as example

mailcmd -server "smtp.live.com" -port "25" -from "xxxxxx@hotmail.com" -pass "xxx
xxxx" -to "xxxxx@xxxxxx.xxx,xxxxx@xxxxx.xxxx" -cc "xxxxxx@xxxxxx.xxx" -subject "
xxxxxxxxxxxxxxxxxxxxxx" -body "Text your mail body...xxxxxx" -attachment "c:\xxx
xxxxxxxx\xxxxxxxx.xxx"

Usage 2 : All input from file . You can refer the input_sample here

mailcmd -inputfile "c:\mailcmd\hotmail.txt"  

Usage 3 : input from file and command prompt together. Command prompt input will overwrite the input from file

mailcmd -inputfile "c:\mailcmd\hotmail.txt -server "smtp.live.com" -port "25" -to "xxxxx@xxxxxx.xxx,xxxxx@xxxxx.xxxx" -cc "xxxxxx@xxxxxx.xxx" -subject "Overwrite the input from file" -htmlbody "c:\mailcmd\htmlbody.htm" -attachment "c:\mailcmd\readme.htm"