Automated email generation not resolving multiple recipients

你。 提交于 2019-12-02 03:08:52

Recipients.Add takes a single email address.

If you wish to have multiple recipients, call Recipients.Add for each one.

If your string is returned in a ; delimited format, then something like:

dim EmailList as variant
dim NumEmails as long
dim AddEmailLoop as long

EmailList=split(StrEmailTo,";")
NumEmails=UBound(EmailList)

For AddEmailLoop=0 to NumEmails
    Recipients.add(EmailList(AddEmailLoop))
next

should allow you to add the entire list

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!