Results 1 to 5 of 5
  1. #1
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    .SendMail and multiple recipients (97sr2h)

    Where Recipient1 and Recipient2 are valid names on my PAB, none of these work:

    ThisWorkbook.SendMail "Recipient1;Recipient2"
    ThisWorkbook.SendMail "Recipient1@mycompany.com;Recipient2@mycompany.com "
    ThisWorkbook.SendMail "mailto:Recipient1@mycompany.com;mailto:Recipient2 @mycompany.com"
    ThisWorkbook.SendMail "[mailto:Recipient1@mycompany.com];[mailto:Recipient2@mycompany.com]"

    each one gives me "Unkown recipient name on found in the recipient list. Use a valid name and try again." error. Is there syntax I'm missing for multiple recipients, or is it something else?
    -John ... I float in liquid gardens
    UTC -7ąDS

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Dublin, Ireland, Republic of
    Posts
    2,697
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: .SendMail and multiple recipients (97sr2h)

    John,

    Try <pre>ThisWorkBook.sendmail Recipients:="Recipient1", Recipient2" </pre>

    etc.

    Andrew

  3. #3
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: .SendMail and multiple recipients (97sr2h)

    Hi John,
    Try:
    ThisWorkbook.Sendmail array("recipient1", "recipient2")
    Hope that helps.
    Regards,
    Rory

    Microsoft MVP - Excel

  4. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: .SendMail and multiple recipients (97sr2h)

    Bingo! About the time you sent this I was reading the .SendMail help and saying to myself "now what does this mean: 'or as an array of text strings if there are multiple recipients'"?

    Thanks again, Rory and Andrew.
    -John ... I float in liquid gardens
    UTC -7ąDS

  5. #5
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: .SendMail and multiple recipients (97sr2h)

    Ah, serendipitous synchronicity! <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    Regards,
    Rory

    Microsoft MVP - Excel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •