Cool Solutions



March 9, 2005 10:25 am






Download smtpcmd

By Bryan Keadle

As you automate administrative tasks, it’s often handy to send an email notification of the process being completed…or when it fails. SMTPCMD gives you a command-line ability to send email notification to one or more users, including specified attachments. Unique about this command is that you don’t need to configure any mail services or clients on the workstation. SMTPCMD will attempt to send directly to the MX record of the workstation’s domain name, or alternatively, to a specific email server.

SYNTAX: SMTPCMD (FROM=”From_Name”) (To1,to2,…) (Subject) (Message) (Attachments) (SMTP Server) (QUIET)

FROM= : (OPTIONAL) Specify the FROM address of the mail message. If not specified then from will show: bkeadle on BKEADLE-IS123

PARAM1 : To address(es), comma separated. “?” to be prompted. Multiple users at same domain can be specified as:

If “@” is not specified, the domain name
of the sending computer is appended

PARAM2 : Subject line

PARAM3 : Message text. You can include a full path to a filename that contains the contents of the message

PARAM4 : (OPTIONAL) Attachment file(s)

PARAM5 : (OPTIONAL) Specify and SMTP server. SMTP servers are automatically found by an MX lookup for the recipients domain name

QUIET : (OPTIONAL) Do not display any message boxes

If no parameters are specified, you’ll be prompted for them

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Categories: Uncategorized

Disclaimer: This content is not supported by Micro Focus. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.