v3.0 6 August 2008 : Removed the GUI form the original scriptv3.1 22 August 2008 : Updated to "autofind" a hub server if -server is not specifiedv3.2 7 November 2008 : Some minor tweeks. Added event logging.Added Error Event loggingThis script uses .net (System.Net.Mail.MailMessage) to send an email - Reports output to the Application EventLog with Event IDs of: 18 Script Starting 19 Script Finished 1801 Details of sent message 1802 Details of any errors
COMMANDLINE OPTIONS
No Commandline .......... This help text-? ...................... This help text-server <Server Name> .. Default is localhost. If you specify "AutoDiscover" a Hub Transport Server will be randomly selected-from <email address> ... From Email Address. Default is nobody@send-mail.ps1-to <email address> ..... TO email address-cc <email address> ..... CC email address-bcc <email address> .... BCC email address-toCSV <CSV file name> .. CSV file with email address.-ccCSV <CSV file name> .. CSV file with email address.-bccCSV <CSV file name> . CSV file with email address.-subject <Text> ......... Message Subject. Default value will be set if not specified-body <Text> ............ Message Body. Default value will be set if not specified-attachment <Path and Filename>-msgcount <Number> ...... Number of messages to be sent. Default is 1-verbose ............... Turns on verbose mode
Next Version of Exchange Named Exchange 2010? Microsoft Exchange's challenges: Partners, the cloud