SCRIPT SEND EMAIL TO A LIST IN A TXT FILE
Hi, i like send a email to 80 users that have a secundary smtp email adress like @pp.com is posible made this whit a distribution list ? or by script whith the users email adress in a txt? Thasnks an sorry by my english mcse 200x + mesaging 2000 2003 2007 2010
February 15th, 2011 10:56am

Try mail merge using word. How to use mail merge to create e-mail messages in Word http://support.microsoft.com/kb/294694James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
February 15th, 2011 11:09am

Powershell: $from = "sender@domain.com" $body = "email message body" $subj = "email subject" $mailhost = "<mail relay>" get-content c:\somedir\list.txt |% { send-mailmessage -to $_ -from $from -subject $subj -body $body -smtpserver $mailhost } If you run it from a hub transport server, you can just use "localhost" as $mailhost.[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
February 15th, 2011 11:41am

thanks mjolinor and james , in the list.txt i must have ? jj@pp.com zz@pp.com ff@pp.com vv@pp.com mcse 200x + mesaging 2000 2003 2007 2010
Free Windows Admin Tool Kit Click here and download it now
February 16th, 2011 9:26am

Just to clarify what you're trying to do, you have some mailbox users but only want to send email to the users that have a secondary proxy of @seconddomain.com? Yes you can add them to a DL after you filter and find the users. There are many ways to accomplish this, one example below. 1. ADUC 2. Click find, drop down choose custom search, click advanced tab 3. In the enter ldap query type proxyaddresses=smtp:*@seconddomain.com 4. When the results are populated, highlight all the users, right click add to group and choose the temporary DL.James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
February 16th, 2011 11:17am

Assuming those are the addresses you want the emails to go to, yes.[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
Free Windows Admin Tool Kit Click here and download it now
February 16th, 2011 9:41pm

Hi ivantv, Mjolinor is right. Here are two related documents for you: Using the Get-Content Cmdlet http://technet.microsoft.com/en-us/library/ee176843.aspx Send-MailMessage http://technet.microsoft.com/en-us/library/dd347693.aspx Thanks, EvanPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
February 20th, 2011 10:02pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics