MailCMD Version 2.0

mailcmd
-inputfile "yyyyyy.txt - You can put command options such as server port .... in a txt file as input."
-server "SMTP server"
-port "port #"
-from "sender mail address. It is used as login SMTP server if needed"
-pass "password for SMTP server"
-to "to mail list, separated by , for multiple"
-cc "cc mail list"
-bcc "bcc mail list"
-reply "reply to mail list"
-subject "mail subject"
-body "mail body text"
-textbody "yyyyyy.txt - text body read from file.  Specify only ONE of textbody,htmlbody or body"
-htmlbody "filename - html body read from file. Specify only ONE of textbody,htmlbody or body"
-attachment "filename with absolute path"
-auth "1 or 0. 1 for login and password required by SMTP. 1 is default"
-ssl "1 or 0. 1 for SSL. 1 is default"

กก

Usage 1 : All options from command prompt. Using Hotmail SMTP as example

mailcmd -server "smtp.office365.com" -port "25" -from "xxxxxx@hotmail.com" -pass "xxx
xxxx" -to "xxxxx@xxxxxx.xxx,xxxxx@xxxxx.xxxx" -cc "xxxxxx@xxxxxx.xxx" -reply "xxxxxx@xxxxxx.xxx"
-subject " Your subect here ..." -body "Text your mail body..." -attachment "xxxxxxxx.xxx"

Usage2: Options from file. Put options such as -server ...in a file. Unzip mailcmd.zip and update .txt sample file or refer the input_sample

Encrypt input file by mailcmd -encrypt "yyyyyy.txt" to "yyyyy.txt.encrypt" for safety
For example :
mailcmd -inputfile "e:\shared\hotmail.txt"                                                                                       << input from txt file
mailcmd -inputfile "e:\shared\hotmail.txt.encrypt"                                                                        << input from ENCRYPTED file
mailcmd -inputfile "yyyyyy.txt.encrypt" -to "New to list" -subject "Overwrite Subject" ......   <<  Options from ENCRYPTED file and Replace/New options from command line)