locked
How to Send mail via script with BCC RRS feed

  • Question

  • Hey all at the moment I have a line like this in my script

    myHtmlMessage = New MailMessage("info@ew.ie", Row.email, "weqweq", emailText)

     

    But how can i add some bcc emails ?

     

    Cheers

    Friday, October 1, 2010 1:22 PM

Answers

  • After that line, use:

    MailAddress bcc = new MailAddress("manager1@contoso.com");
    message.Bcc.Add(bcc);


    Todd McDermid's Blog Talk to me now on
    Friday, October 1, 2010 5:51 PM

All replies

  • AFAIK its not possible. You could send 2 separate mails using 2 send mail task in case you wish to send the mail to one person, or put the mail task in a foreach loop where the emails ids could be fetched from a staging table.


    Sudeep's Domain   Tweet me..
    Friday, October 1, 2010 2:16 PM
  • After that line, use:

    MailAddress bcc = new MailAddress("manager1@contoso.com");
    message.Bcc.Add(bcc);


    Todd McDermid's Blog Talk to me now on
    Friday, October 1, 2010 5:51 PM