Simple.Czechian.Net

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.

Examples

Settings

Server settings

E-mail details

Screenshots

Main window Settings window

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

WebZdarma.cz