Sending an e-mail through MATLAB using Microsoft Outlook

4 ビュー (過去 30 日間)
ZACHARIAS KOUNTOUPIS
ZACHARIAS KOUNTOUPIS 2017 年 7 月 12 日
So, I am using the function 'sendolmail' found at the following Mathworks blog to send e-mails from my Outlook account from the MATLAB editor. It indeed works, and I can also include attachments or pictures etc. My question is whether it is possible to send a result of another MATLAB function saved and run at the same directory. I tried calling the function like that :
sendolmail('email_address','Subject included',result of a function);
When I run this, a mistake is returned. It seems as if only strings or attachments from my computer can be sent through the function. Any ideas on how results of functions can be added and sent? Thanks in advance!

回答 (1 件)

ES
ES 2017 年 7 月 12 日
If the "result of a function" is a number, you should convert it to a string and pass it (using num2str function)
  2 件のコメント
ZACHARIAS KOUNTOUPIS
ZACHARIAS KOUNTOUPIS 2017 年 7 月 12 日
Hi and thanks for your answer.
The result is a simple text,i.e string, as the function is a test-bench returning a specific output, based on the input. Though when I put the result of the function, the called 'sendolmail' function won't compile correctly.
ZACHARIAS KOUNTOUPIS
ZACHARIAS KOUNTOUPIS 2017 年 7 月 12 日
Never mind, I was using the variable at which the string was attached, though I had to call the whole function. So it is solved. Thanks again.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeWeb Services についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by