SimpleSend
This program lets you send e-mails to your desired address extremely simply. You need to specify the address and you need to specify the text. Than you need to click the "send" button and thats it.
Err, this is not true completely. You need to specify your settings first like your SMTP server, your address and so on. But you need to do this only once of course. See details about settings below.
Command line parameters
The first parameter is always the string that should be sent. There are two other parameters that control the e-mail address of the receiver and the subject of the e-mail. These parameters are optional. If not specified, value from last time is used.
- to: ... e-mail address of receiver
- subject: ... subject of e-mail
Examples
- Send "Hello Jack, how are you?" to:jack@email.com "subject:Hello Jack" ... Sends "Hello Jack, how are you?" to jack@email.com with subject "Hello Jack".
- Send "Hello Jack, how are you?" to:jack@email.com ... Sends "Hello Jack, how are you?" to jack@email.com. E-mail subject will be the last subject that you sent.
- Send "Hello Jack" ... Sends "Hello Jack" to the last address you used with the subject from the last e-mail.
- Send hello ... You need to provide the quotation marks only if the e-mail body contains spaces (I think it will be most of the times).
Settings
Server settings
- Host ... This is the address of SMTP server that you want to use. You can usualy find this in the help of your e-mail account. Most likely it looks something like this: smtp.provider.com.
- Port ... The number specified by your provider. You can usually find it in the help too.
- Account ... Usually your e-mail address. Or the address without the "@provider.com" part.
- Password ... The password you use to log-in to your e-mail account. Take care, it is saved in the text file in non-encrypted form!
- Your name ... This one I believe is self explanatory. It is displayed instead of your e-mail address when someone receives your mail.
- From address ... Your e-mail address.
- Reply address ... Specify this is you want the person to reply on different address than you send from.
- E-mail subject ... Subject for all e-mails sent from this program.
Screenshots
C# source code
string Host;
string Port;
string FromAddress;
string ToAddress;
string ReplyAddress;
string Name;
string Account;
string Password;
string Text;
string Subject;
bool Ssl;
SmtpClient client = new SmtpClient(Host, Int16.Parse(Port));
MailAddress from = new MailAddress(FromAddress, Name, Encoding.UTF8);
MailAddress to = new MailAddress(ToAddress, ToAddress, Encoding.UTF8);
MailAddress reply = new MailAddress(ReplyAddress, Name, Encoding.UTF8);
MailMessage message = new MailMessage(from, to);
NetworkCredential cred = new NetworkCredential(Account, Password);
client.Credentials = cred;
client.EnableSsl = Ssl;
message.ReplyTo = reply;
message.Body = Text;
message.Subject = Subject;
message.SubjectEncoding = Encoding.UTF8;
message.BodyEncoding = Encoding.UTF8;
client.Send(message);
Changelog
-
0.2 ... complete rewrite of application code
- Name changed to SimpleSend
- Exe name changed to Send.exe
- Command line parameters added
- Last address of receiver is remembered
- Subject of E-mail can be changed in the main form
- Application settings stored in the startup directory
- Lots of UI tweaks
- 0.1 ... initial release