Home   |   Sitemap
Fully functional command line SMTP mailer.
Add multiple attachments, cc, and bcc recipients. Only $49.
© SmtpInfo

SMTP Mailer

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.

SMTPMAIL.EXE from=example@smptinfo.com to=example@smtpinfo.com body="Hello World!" subject=Example server=smtp.smtpinfo.com

Features

The table below lists the features available in the free SMTP Mailer and the professional SMTP Mailer.

Feature Free Pro
Sender yes yes
Recipients one multiple
CC Recipients no multiple
BCC Recipients no multiple
Attachments one multiple
Server Port 25 any
Authentication no basic, windows
Body text plain, html plain, html
Multiple body parts no yes

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]

ParameterDescription
from 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 Subject of the email.
body Body text of email.
bodyfile File name of a file containing the body text. This parameter can be specified multiple times.
attachment File name of attachment. This parameter can be specified multiple times.
server Name or IP address of the SMTP server.
port Port number of the SMTP server. The default value is 25.
user User name used for authentication.
password Password used for authentication.
license License key that unlocks the professional features.

Values of subject, body, user and password must be URL encoded when using special characters.

More Examples

Specify License

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 201008317814ec66006dbfee08bc9594eead1384. This license string is valid 30 days starting today.

SMTPMAIL.EXE from=example@smptinfo.com to=example@smtpinfo.com to=example@biopdf.com body="Hello World!" subject=Example server=smtp.smtpinfo.com license=201008317814ec66006dbfee08bc9594eead1384

Multiple Recipients

Add two recipients.

SMTPMAIL.EXE from=example@smptinfo.com to=example@smtpinfo.com to=example@biopdf.com body="Hello World!" subject=Example server=smtp.smtpinfo.com

Attachments

Send an email with two attachments from the command line.

SMTPMAIL.EXE from=example@smptinfo.com to=example@smtpinfo.com body="See attached files" subject="Mailing attachments from a command line" server=smtp.smtpinfo.com attachment=c:\document.pdf attachment=c:\image.gif

Server Authentication

In this example the server requires a login and password.

SMTPMAIL.EXE from=example@smptinfo.com to=example@smtpinfo.com body="See attached files" subject="Mailing attachments from a command line" server=smtp.smtpinfo.com user=tester password=pass#word1