Project DescriptionA command line email utility using the .NET 2.0 Framework. Usage:
CmdEmail -f nobody@nowhere.com -t you@domain.com -s Subject -b Body
CmdEmail -f "nobody@nowhere.com" -t "you@domain.com" -s "Subject" -b "Body"
CmdEmail -f nobody@nowhere.com -t you@domain.com,me@domain.com -s Subject -b Body
All command switches:
t, to Required. Recipient (To)
f, from Required. Sender (From)
b, body Required. Email Body
s, subject Required. Email Subject
h, host SMTP Server - Optional only if provided in app config
p, port SMTP Port - Optional, can also be provided in app config
u, username Username - Optional, can also be provided in app config
p, password Password - Optional, can also be provided in app config
help
Note:You can provide the SMTP server, port, username and password in the application configuration file rather than via command switches. Of those, the SMTP server is the only required parameter. If the port isn't provided, the default port of 25 will be used. The username and password values will only be provided if both values are present. Requirements:
|