Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This command is used to manualy send mail message through specified SMTP server. 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"]
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.comrecipients="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"

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.