mailcmd -inputfile
"xxxxxx.txt" - The most easy way to mail attachment
for Windows
- Run directly. No installation required.
Download
Screenshot
Option to put -server -port -to -attachment .. all the arguments in a file eg. hotmail.txt,
yahoo.txt.. as one argument input. No need to remember the
arguments to send mail each time. Just edit the text file as input.
see sample
Easy to be called by any type of program. Only need to change the inputfile
without changing your code for mailing changes
Response back with "Mail sent successfully with return code 0" or
"Mail sent failure" for your program to take action. Also
response back the attached file name and file size if there is an
attachment.
- Download bat file,
there are two files mailcmd.bat and mailcmdsms.bat for you to send critical attachment.
It takes hotmail and yahoo SMTP for example.
You can change them to your SMTP server easily.
- mailcmd.bat - Send mail thru hotmail SMTP and resend thru yahoo
SMTP if hotmail failed.
- mailcmdsms.bat - Send mail thru hotmail SMTP and resend thru
yahoo SMTP. Using
SMSCMD to
send SMS alert if both hotmail and yahoo SMTP are all failure
Write sent mail to log file including timestamp, attached file name,
file size and
success or fail status . Also
separate the log files by
month automatically. e.g. mailcmd_2018-8.txt , mailcmd_2018-9.txt.
see sample
SSL supported to use Hotmail, Yahoo... or your own mail server
to send
mail. Gmail/Yahoo/Hotmail
SMTP setup
Mail body can be read from text file or html file or input
directly
You can
download and run directly without
license key but the text will be truncated.
The license key is USD45 for each Windows .
Click to
purchase
If you need Email2SMS, check
SMS4Mail
- filter OUTLOOK incoming mail's "From" & "Subject" then
forward to
phones via SMS
Usage :
help without argument
mailcmd
-inputfile "inputfile.txt"
-server "mail server"
-port "port #"
-from "sender mail address.This is used as logon smtp server"
-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"
-reply "reply to mail list. separated by , for multiple"
-subject "mail subject"
-body "mail body text"
-textbody "xxxxxx.txt - text body read from text file. specify one of textbody,htmlbody or body"
-htmlbody "xxxxx.htm - html body read from html 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 : Put all arguments in file as one input . You can refer the
input_sample, it takes hotmail for
example.
mailcmd -inputfile "hotmail.txt"
Usage 2 : All arguments from command line. Using Hotmail SMTP server as
example
mailcmd -server "smtp.live.com" -port "25" -from "xxxxxx@hotmail.com"
-pass "xxxxxxx" -to "xxxxx@xxxxxx.xxx,xxxxx@xxxxx.xxx" -cc "xxxxxx@xxxxxx.xxx"
-reply "xxxxxx@xxxxxx.xxx"
-subject " Your subject here ..." -body "Text your mail body..." -attachment
"xxxxxxxx.xxx"
Usage 3 : input from file and from command line together. Command
line arguments overwrite those from file
mailcmd
-inputfile "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 "xxxxxxx.htm"
-attachment "d:\myfile\readme.htm"
|