Filter löschen
Filter löschen

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

3 Ansichten (letzte 30 Tage)
Michael Mateju
Michael Mateju am 3 Feb. 2015
Kommentiert: wei am 11 Apr. 2015
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

Antworten (1)

Image Analyst
Image Analyst am 3 Feb. 2015
Instead of using ActiveX to talk to Outlook, why not use MATLAB'S sendmail()? I attach a demo.
  9 Kommentare
Image Analyst
Image Analyst am 23 Mär. 2015
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 am 11 Apr. 2015
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Use COM Objects in MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by