Screenshots






 

Buy Now!
 

 


Help / Example Usage Information

To view a list of supported switches you can run:

EZMailSend /?

Some Important Notes:

Since pressing enter in the command line will cause the command to execute, you must use \n for line-breaks in your message.

For example:

EZMailSend /to:joe@example.com /message:Hello,\n\nHow are you?

Would result in the following message:

Hello,

How are you?

In addition to newline characters you must also escape forward-slash characters (/) so EZMailSend does not interpret them as a switch.
This is done by placing a backslash before the forward-slash,
i.e. / becomes \/

For example:

EZMailSend /to:joe@example.com /message:Hello \/ How are you?

Would result in the following message:

Hello / How are you?

Real-World Usage Examples:

Below are some common tasks you can perform with EZMailSend.
These examples should give you the basic understanding
needed to do anything with EZMailSend...


Please Note: All command lines should be on 1 line.
The line breaks on this page are for display purposes only.

Sending a simple email without SMTP/From information saved:
    EZMailSend /from:me@mysite.com /smtp:smtp.mysite.com /user:me
               /pass:secret /to:joe@example.com /subject:Hello Joe!
               /message:How are you doing?
 
Sending a simple email without SMTP/From information saved, specifying an alternate SMTP port:
    EZMailSend /from:me@mysite.com /smtp:smtp.mysite.com /user:me
               /pass:secret /port:2525 /to:joe@example.com
               /subject:Hello Joe! /message:How are you doing?
 
Saving SMTP and From information so it doesn't have to be specified every time:
    EZMailSend /from:me@mysite.com /smtp:smtp.mysite.com
               /user:me /pass:secret /port:25 /set 
 
Sending a simple email with SMTP/From information saved:
    EZMailSend /to:joe@example.com /subject:Hello Joe!
               /message:How are you doing? 
 
Sending a simple email at High priority:
    EZMailSend /to:joe@example.com /subject:Hello Joe!
               /message:How are you doing? /priority:high 
 
Sending an email with line-breaks in the message using "\n"
    EZMailSend /to:joe@example.com /subject:Hello Joe!
               /message:How are you doing?\nI'm doing good.\n\n
               Hope to hear from you soon! /priority:high 
 
Attaching a file:
    EZMailSend /to:joe@example.com /subject:Here is that file you
               wanted /message:Here you go! /attach:c:\file.doc 
 
Attaching multiple files:
    EZMailSend /to:joe@example.com /subject:Here are the files you
               wanted /message:Here you go!
               /attach:c:\file1.doc;file2.doc;photo.jpg
 
Embedding a files contents inside of the email message:
    EZMailSend /to:joe@example.com /subject:Here are the notes you
               wanted /message:See below... /embed:c:\file.txt 
 
Embedding a files contents inside of the email message without the "Contents of c:\file..." header above the embedded file content:
    EZMailSend /to:joe@example.com /subject:Here are the notes you
               wanted /message:See below... /embed:c:\file.txt
               /noheader
 
Sending a Multi-Part email with Plain Text and HTML content:
    EZMailSend /to:joe@example.com /subject:Multi-part!
               /message:Hi <b>Joe<\/b>, this is HTML! /html /plain
               /altmessage:Hi Joe, this is Plain! 
 
Sending a Multi-Part email with Plain Text and HTML content using Embed:
    EZMailSend /to:joe@example.com /subject:Multi-part with Embed!
               /embed:c:\email.html /html /plain
               /altembed:c:\email.txt 
 
Sending the results of an application to a recipient, such as the total files on C:\:
     DIR C:\*.* | FIND "File(s)" | EZMailSend /to:joe@example.com
               /subject:Total files C:\ 
 
Sending a simple email to someone and then sending yourself the results:
    EZMailSend /to:joe@example.com /subject:Hello Joe!
               /message:How are you doing? | EZMailSend
               /to:me@mysite.com /subject:Results of my email to Joe 
 
Sending a simple email to multiple "To" recipients:
     EZMailSend /to:joe@example.com;bob@mysite.com;jim@example.net
               /subject:Hello Joe, Bob and Jim! /message:How are you
               guys doing? 
 
Sending a simple email to 1 recipient and Carbon Copying 2 additional recipients:
    EZMailSend /to:joe@example.com
               /cc:bob@mysite.com;jim@example.net
               /subject:Hello Joe, Bob and Jim!
               /message:How are you guys doing? 
 
Sending a simple email to 1 recipient, Carbon Copying 2 additional recipients, and Blind Carbon Copying yourself:
    EZMailSend /to:joe@example.com /cc:bob@mysite.com;jim@example.net
               /bcc:me@mysite.com /subject:Hello Joe, Bob and Jim!
               /message:How are you guys doing? 
 
Sending a simple email and outputting the results to a log file and screen:
    EZMailSend /to:joe@example.com /subject:Hello Joe!
               /message:How are you doing? /logfile:c:\email.log 
 
Sending a simple email and outputting the results to just a log file and not the screen:
    EZMailSend /to:joe@example.com /subject:Hello Joe!
               /message:How are you doing? /logfile:c:\email.log
               /quiet 
 
Sending a simple email and outputting the results to a log file and if the log already exists appending it to the end instead of overwriting it:
    EZMailSend /to:joe@example.com /subject:Hello Joe!
               /message:How are you doing? /logfile:c:\email.log
               /logappend 
 
Sending a simple email using an EZMS configuration file:
First create a .EZMS configuration file using the EZMailSend
Configuration File Creator or using a text editor.
An EZMS file simply contains the command line parameters you
would normally type at the console. However since it's in a
file you can separate each parameter with a line break to make
it easier to read. In addition you can use line-breaks in your
message instead of using \n.
  
Here is an example EZMS config file called SIMPLE.EZMS:
     
    /to:joe@example.com
    /cc:bob@mysite.com;jim@example.net
    /bcc:me@mysite.com
    /subject:Hello Joe, Bob and Jim!
    /message:How are you guys doing?
    
    I'm doing pretty good.
    
    I've attached a funny photo, check it out!
    
    Hope to hear from you soon!
    /attach:c\funny.jpg
    /logfile:c:\email.log
    /logappend
      
This will send an email to 1 recipient, CC to more and BCC
yourself.
The message has several lines and it will attach an image and
append the results to the logfile c:\email.log.
      
Now to send this you can simple double click the SIMPLE.EZMS
file, drag it on to EZMailSend.exe or launch EZMailSend with
the /config option like this:
      
    EZMailSend /config:c:\simple.ezms
      
If you chose to double click the SIMPLE.EZMS file you may have
noticed the console appeared then disappeared.
If you would like the console to stay open you may use the
/PAUSE switch which will prompt you to press any key to close.
To do this simply place /PAUSE at the end of your EZMS file.
This switch may also be used in the command line.
 

 
 
 

Copyright © 2008-2010 Robert DeFusco, All Rights Reserved.

lynk2 :: short url generator - http://lynk2.me