Accessing Outlook contact groups through ActiveX in matlab
3 次查看(过去 30 天)
显示 更早的评论
I want to send out reports generated in matlab to certain contact groups in Outlook, i've been using the code from https://www.mathworks.com/matlabcentral/answers/94446-can-i-send-e-mail-through-matlab-using-microsoft-outlook , is it possible to change the "to" field from a email address to a contact group?
h=actxserver('outlook.Application');
Distribution_List_Name = h.GetNamespace('mapi').GetDefaultFolder('olFolderContacts').Items(1).Item(1).Subject;
i use the code above to find the names of the contact groups through ActiveX, but cannot find the email addresses within each group. changing it to Item(2) gives me the second contact folder name.
Anyone know more about ActiveX than me able to help? I tried to navigate through the inspector, but didn't have much luck.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 ActiveX 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!