Tool

bkeadle's picture
tool
Reads:

3979

Score:
0
0
 
Comments:

0

SMTPCmd

Author Info

9 March 2005 - 10:25am
Submitted by: bkeadle

(View Disclaimer)

license: 
Free

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: user1+user2+user3@domain.com

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

AllegatoDimensione
smtpcmd.zip797.41 KB

Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

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, test, test before you do anything drastic with it.




User Comments

© 2013 Novell