This product makes it extremely simple to send an email from a command line. You can specify the sender and multiple recipients including CC and BCC. It also supports multiple attachemnts and server authentication.
Send an email from a command line
Here is a short example of how to use the SMTP Mailer.
Send now or Edit before sending
You can choose to send the email directly or you can show it to the user before sending it. This allows the user to edit the content.
If you add the GUI command line switch then the email will open in an editor before it is sent.
The table below lists the features available in the free SMTP Mailer and the professional SMTP Mailer.
|Multiple body parts
|Edit email before sending
Command Line Usage
SMTPMAIL from=sender_email to=recipient_email server=smtp_server
[subject="email_subject"] [cc=cc_recipient] [bcc=bcc_recipient]
[body="body_text"] [type=text|html] [priority=low|normal|high]
[user=auth_user] [password=auth_password] [bodyfile=filename]
[attachment=filename] [license=licensekey] [gui] [ssl]
|Email address of sender.
|to, cc, bcc
|Email address of recipient. Multiple recipients of each type can be added by repeating the parameter tag.
|Subject of the email.
|Body text of email.
|File name of a file containing the body text. This parameter can be specified multiple times.
|File name of attachment. This parameter can be specified multiple times. Wildcards are supported since version 5.
|Name or IP address of the SMTP server.
|Port number of the SMTP server. The default value is 25.
|User name used for authentication.
|Password used for authentication.
|Instructs the program to send the email using SSL. Using the ssl switch can often solve problems where the server expects a STARTTLS command.
|License key that unlocks the professional features.
Values of subject, body, user and password must be URL encoded when using special characters.
Try the Pro features
We invite you to try the features of the Pro version for 30 days. The following license code is valid for the next 30 days.
This example shows how to specify the license string on the command line. A valid license will unlock the extra features of the professional version. In the example below we use the license string 20240403ea07b4ba1d52fbac49ecb16f066e4ff7.
Add two recipients.
Send an email with two attachments from the command line.
In this example the server requires a login and password.
Google GMail SMTP Server
If you have a Google GMail account then you also have access to Google's SMTP server. Using this server requires you to use the