ShellSend is a compact free tool which allows you to send text emails from the command line, batch files or scripts.
The program's syntax looks like this:
shellsend.exe [to address] [from address] [mailserver] [mailserver port] [use SSL (0 or 1)] [username] [password] [email subject] [body-filename] [body-text]
("Body-filename" here refers to an optional file which contains the body text of the email. ShellSend can't send binary files as an attachment.)
In practical terms, you'll enter something like this:
shellsend.exe "firstname.lastname@example.org" "email@example.com" "smtp.mydomain.com" 25 0 "firstname.lastname@example.org" "mypassword" "Test" "" "This is my body message!"
Here ShellSend is sending a message titled "Test", containing the text "This is my body message!", to "email@example.com", using your email address "firstname.lastname@example.org", through SMTP port 25, without using SSL, logging in as "email@example.com" with the password "mypassword".
If authentication isn't required then you can safely leave the username and password fields blank, like:
shellsend.exe "firstname.lastname@example.org" "email@example.com" "smtp.mydomain.com" 25 0 "" "" "Test" "" "This is my body message!"
Enter a command to test this, and ShellSend tries to access the mail server as you've specified. If all is well you'll see "Message sent successfully"; if there's a problem, the program will pause for a while before timing out. Check your settings carefully and try again.
We'd like an option to include binary attachments, but otherwise ShellSend makes it reasonably easy to send emails from scripts and the command line.