The 20 Minute E-Mail Solution!
TOC PREV NEXT INDEX

Sending Mail to All Users (mailall.exe)


Mailall.exe is a command line utility that sends mail to all users on a particular host or on all hosts on the IMail Server system.

Basic Command Syntax

mailall -h hostname|ALL> -f sender -d [-s Subject] <FullPathToMessageFile> 

-h hostname or -h ALL The -h parameter is required. You can specify a host name or use the word ALL to specify all hosts on the IMail system.
-f sender The -f parameter specifies what address appears in the From: field. A value is required if you are using a text file that has no From: header line
-s subject The -s is an optional parameter that specifies the content of the Subject field.
-d Optional. Use -d if you want the source file deleted when mailing is completed
FullPathToMessageFile Required

Examples

mailall -h myhost -f admin@myhost -s"Admin note" C:\mailnotes.txt 

The above example sends the file mailnotes.txt to all users on myhost. The message is from admin@myhost; the Subject is Admin Note.

Alias1=|mailall -h myname -d  

The preceding example creates a program alias that is used to send mail to all users on the myname host. Then, you can send a message to Alias1@myname.com, and it will go to everyone on the myname host.



Ipswitch, Inc.
http://www.ipswitch.com
TOC PREV NEXT INDEX
©Ipswitch 2003