Using matlab to add contacts to outlook -


i have .xls file containing large amount of emails, want add outlook via matlab. processing .xls file no problem.

i found possible send mails via matlab using h = actxserver('outlook.application'and figured might able use purpose. i'm unfamiliar activex/com interface, , how use it.

i tried use get(h) did not give me useful information.

two questions. 1) how can use matlab add contacts.

and secondly, more general, how able find out can 'h' in case? see people using h.subject or h.to how able find out possible things (like subject or to) can h?

to add contact need create contactitem object through activex control:

h = actxserver('outlook.application');  newcontact = h.createitem('olcontactitem'); newcontact.firstname = 'john'; newcontact.lastname = 'smith'; newcontact.email1address = 'john.smith@email.email'; newcontact.save();  % newcontact.display;  % check work h.release;  % close activex interface 

see contactitem properties page list of other fields can modify.

for general question, takes poking around in outlook's object model reference


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -