SendToVB is a little FREE command-line utility for the Windows platform. It's a software application usefully to Send Programmatically email with attachment using the default Email Client (it is compatible with Any Client).
It can be used on Microsoft Windows 98, XP, Vista, Seven.
.NET framework 2,0 must be installed.
SendToVB is a console software, so you can open a "Command Prompt Windows", writing "cmd", and use it like a command.
If you write SendToVB and press Enter you can see the help
There are Two Usage:
SendToVB -file <file1> -body <text> -to <address> -subject <text>
The commands (flags) available are:
-files <file1> ... <fileN> with which you can send multiple attachments in the same email.
-body <text> it set the body of the message enclosed in double quotes (").
-bodytext <bofyfile.txt> that can be used as an alternative to -body when the email should contain a very long message. It allows you to specify the text file that contains the body of the email.
-to <address1>;<address2> you can also specify multiple recipients separated by a semicolon (;)
-cc <address1>;<address2> you can also specify multiple Carbon Copy recipients separated by a semicolon (;)
-bcc <address1>;<address2> you can also specify multiple Blind Carbon Copy recipients separated by a semicolon (;)
-subject <text> it assign the title of the email
-mailto it force SendToVB to use the mailto method (instead of the MAPI functions), but that might not work properly when inserting attachments.
All commands (flags) can be abbreviated with the first letter, so -subject becomes -s
SendToVB -list <listfile.txt>
If the set of flags of command line is too large for your application you can use the Usage2
The file listfile.txt must contain ALL the flag the you want in only ONE line, like this:
-to email@example.com - subject "hi, how are you?" -files C:\readme.txt
For Example if you write in command prompt:
SendtoVB.exe -to firstname.lastname@example.org;email@example.com -files "C:\readme.pdf" -body "Haw Are You?" - Subject "Good Morning"
SendToVb automatically open your Default Email Client (Thunderbird in this case) and compose the email like in Window.
If you are a Software Developer you can integrate SendToVB with your application.
Since it is a small stand-alone tool, it can also be used by third-party software to automate the procedures for sending mail. A hypothetical third-party software written for example in Visual Basic .NET or C# might contain a line of code that calls a "shell command" with inside SendToVB.
System.Diagnostics.Process.Start ("SendToVB firstname.lastname@example.org C::\readme.txt");
SendToVB is written in Visual Basic 2005, so you need to install the .NET Framework 2.0 runtime which is often already installed on newer PCs.
Notes from the Author:
1) The name "SendToVB", VB stands for Visual Basic 2005 because this software is wrtitten with this .NET language.
2) The source are based on work of this two autors
David M Brooks - "Programmatically adding attachments to emails in C# and VB.NET"
Larry Steinle - "Split Function that Supports Text Qualifiers"
3) SendToVB use automatically MAPI function when message have attachment and Mailto: when email have NOT attachment
4) SendToVB is Freeware.
Version 1.2 - Added -cc and -bcc parameters
Version 1.1 - The First !
Home page >