필터 지우기
필터 지우기

How Can I send email from ML with two different accounts?

조회 수: 3 (최근 30일)
Michael Mateju
Michael Mateju 2015년 2월 3일
댓글: wei 2015년 4월 11일
Hi,
I have MS outlook installed. I'm trying to use 'sendolmail' function in ML. But I would like to figure out hot to use different account instead of the default one. I tried the following:
h = actxserver('outlook.Application');
mail = h.CreateItem('olMail');
get(h.Session)
but it returns only one account. I dunno how to tell ML to use another one.
Thanks for help

답변 (1개)

Image Analyst
Image Analyst 2015년 2월 3일
Instead of using ActiveX to talk to Outlook, why not use MATLAB'S sendmail()? I attach a demo.
  댓글 수: 9
Image Analyst
Image Analyst 2015년 3월 23일
Like I said, I don't. And Michael never returned here to say if he found the ActiveX method to specify which account to log in to. If you figure it out, maybe you will post your learnings here.
wei
wei 2015년 4월 11일
I can only specify which account is used to send mail by changing the default email account, cannot find anyway to choose directly from Matlab.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Use COM Objects in MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by