Outlook, how to use VBA to send email to groups of contacts?

桐 梧 1 Reputation point
2021-03-10T10:21:12.87+00:00

How to use VBA to send email to groups of contacts?
I tried send email to contacts group but it didn't work.The email was sent, but nobody received it.

ovMailItem := ovOutlook.CreateItem(0);
ovMailItem.To := 'my contacts group or contacts group Email Address';
ovMailItem.Subject := 'test email';
ovMailItem.Send;

Microsoft 365 and Office Development Other
Developer technologies Visual Basic for Applications
{count} votes

1 answer

Sort by: Most helpful
  1. JeffYang-MSFT 6,261 Reputation points Moderator
    2021-03-11T02:13:59.98+00:00

    Hi @桐 梧 ,

    Welcome!

    Outlook VBA develop issue, so I add the "office-vba-dev" tag here to better help solve your issue.

    I tried some search and found some existed VBA scripts which might could help, for your reference:
    Sending Email to a List of Recipients Using Excel and Outlook
    How to Send a Same Email to Each Member in an Outlook Contact Group Separately via VBA
    (Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)

    Hope this can be helpful.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.