|
|
Question : message simulators
|
|
Easy one for everyone---
We are about to perform some MIIS syncs and want to simulate actual messages to exsisting users. The first thing that came to mind was loadsim or a script but I dont believe loadsim will allow us to use actual user accounts. I know it creates users and simulates message transfer but does it put mail in the users mailbox?
thx
|
Answer : message simulators
|
|
Set objEmail = CreateObject("CDO.Message")
objEmail.From = "[email protected]" objEmail.To = "[email protected]" objEmail.Subject = "Subject Blah" objEmail.Textbody = "Blah Blah Blah, Blah Blah" objEmail.AddAttachment C:\Test.txt
objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "SMTPSERVER" objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 objEmail.Configuration.Fields.Update objEmail.Send
You could also loop through active directory and pull out the SMTP address to send messages to all users.. etc.. Just dump this into a vbs and edit it to match your environment.
|
|
|
|