Home > How-to Guides > Send an Email via Command Line With Messageware ActiveSend

Send an Email via Command Line With Messageware ActiveSend

This article applies to the following products:

Messageware ActiveSend 2019, 2016, 2013, O365

 

SUMMARY

An email (including attachments) can be sent from Messageware ActiveSend to mail recipients by providing simple text commands.  This can be ideal for automation tasks requiring to send an email from a specific event.

 

From CMD prompt:

  1. Navigate to \Program Files (x86)\Messageware Incorporated\Messageware ActiveSend\
  2. Launch the Activesend_launcher.exe with the preferred attribute

 

Attribute

Description

-To

Send mail to smtpaddress

-Cc

Carbon copy to smtpaddress

-Bcc

Blind carbon copy mail to smtpaddress

-Subject

Subject in plain text

-Body

Body in plain text

-Attach

Full folder path and file name

-Alias

Assumed name of attachment file

-Silent 

Suppress compose window and automatically send


 Additional notes:

  • To include additional mail recipients, a comma or a semicolon can used

Example: -To user1@contoso.com;user2@contoso.com;user3@contoso.com

 

  • To include additional attachments

Example: -Attach "file1.ext" -Alias "file1" -Attach "file2.ext" -Alias "file2"

 

  • To include multiple lines in the email body, add %0D%0A outside of quotes

Example: -Body "This is the first text line"%0D%0A"This is the second text line"

 

Example 1:  

"C:\Program Files (x86)\Messageware Incorporated\Messageware ActiveSend\activesend_launcher.exe" -silent -To user1@contoso.com -Cc user2@contoso.com -Subject “Test documentation” -Body “Please find the attached test documentation” -Attach "\temp\test.docx" -Alias "Test DOCX"

 

Example 2:

"C:\Program Files (x86)\Messageware Incorporated\Messageware ActiveSend\activesend_launcher.exe" -silent -To user1@contoso.com -Cc user2@contoso.com;user3@contoso.com -Subject “Test documentation” -Body “Please find the attached test documentation”%0D%0A"Thanks for reading it!" -Attach "\temp\test.docx" -Alias "1st Test DOCX" -Attach "\temp\test2.docx" -Alias "2nd Test DOCX"