Command «send_mail»
This command is used to manually send mail message through specified SMTP server.
Syntax
Here is command syntax:
cmdmgr.exe send_mail --body="message body" [-–mailing="MAILING"] --from="mail from" --recipients="comma or semicolon separated mails" --smtp_host="SMTP server host" --smtp_port="SMTP server port" [--priority=<low|normal|high>] [--subject="message subject"] [--attach_file="attached file"] [--auth_user="authentication user"][--auth_pass="authentication password"]
Parameters
Here is list of command parameters:
body – this is message body;
mailing – this parameter means group of mails. Loaded from database. This is optional parameter;
from – mail of message sender. Ignored if mailing used;
recipients – list of comma or semicolon seperated message recipients. Optional parameter if mailing used;
smtp_host – host address of SMTP server. Ignored if mailing used;
smtp_port – port of SMTP server. Ignored if mailing used;
priority – this is message priority. Can be «low», «normal» or «high». This parameter is optional;
subject – this is message subject. Optional parameter;
attach_file – attached file name. Optional parameter
auth_user – user name for SMTP server authentication. Optional parameter;
auth_pass – user password for SMTP server authentication. Optional parameter.
Examples
cmdmgr.exe send_mail --body="example" --from=from@mail.com --recipients="to1@mail.com;to2@mail.com" --subject="test" --smtp_host=127.0.0.1 --smtp_port=25
cmdmgr.exe send_mail --body="example" --mailing="MAILING" --recipients=to1@mail.com;to2@mail.com --subject="test" --attach_file="D:/test.txt"