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 个)

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by