none
Mass mailing

    Question

  • Hi,

    I need to sent email to some group of people (Smith, Jon etc) (inside my organisation), of course i can create e-mail group and send email to it, but i want this:

    Field "To" of this e-mail must be e-mail of each man. For example:

    I send email : from XXX@copmany.com to group@copmany.com

    This email in outlook of Smith: from XXX@copmany.com to smith@copmany.com

    Looks like spam, but inside company.

    Can i do this? How?

    Thanks.
    Tuesday, September 22, 2015 12:43 PM

Answers

  • Hi,

    I create script:

    $file = "C:\scripts\Mass_mailing\Attachments.doc"
    $en = [Text.Encoding]::Unicode
    $Body = Get-Content "C:\scripts\Mass_mailing\body.htm" | out-string
    $F = "From <from@mail.com>"
    $S = "Subject"

    $impfile = "C:\scripts\Mass_mailing\email.csv"
    $users = Import-CSV $impFile

    foreach ($user in $users)
    {
    $email = $user.email
    send-MailMessage -Attachments $file -To $email -From $F -Subject $S -BodyAsHtml $Body -Encoding $en -SmtpServer smtp.server
    }

    Thanks all.

    • Marked as answer by sekii911 Wednesday, September 23, 2015 8:36 AM
    Wednesday, September 23, 2015 8:36 AM

All replies

  • I don't know any way to do this without writing a script to send the message separately to each group member.

    You can send to the group as a Bcc but that will leave the To field blank to each recipient.

    You can send to the group as a To, then click the little + to expand the group, but that will show all recipients in the To field to each recipient.


    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

    Tuesday, September 22, 2015 11:02 PM
    Moderator
  • Hi,

    Based on my knowledge, I have found no such methods to achieve your goal.

    Or you can refer to Ed's response as a workaround.

    Addictionlly, I suggest you can ask a question in Microsoft Exchange Development forum to confirm whether it can be achieved by any code related script:

    https://social.technet.microsoft.com/Forums/exchange/en-US/home?forum=exchangesvrdevelopment

    Thank you for your understanding.

    Regards,

    David 

    Wednesday, September 23, 2015 2:39 AM
    Moderator
  • Hi,

    I create script:

    $file = "C:\scripts\Mass_mailing\Attachments.doc"
    $en = [Text.Encoding]::Unicode
    $Body = Get-Content "C:\scripts\Mass_mailing\body.htm" | out-string
    $F = "From <from@mail.com>"
    $S = "Subject"

    $impfile = "C:\scripts\Mass_mailing\email.csv"
    $users = Import-CSV $impFile

    foreach ($user in $users)
    {
    $email = $user.email
    send-MailMessage -Attachments $file -To $email -From $F -Subject $S -BodyAsHtml $Body -Encoding $en -SmtpServer smtp.server
    }

    Thanks all.

    • Marked as answer by sekii911 Wednesday, September 23, 2015 8:36 AM
    Wednesday, September 23, 2015 8:36 AM