How do I modify the content by adding an output an email in sendmail()

1 回表示 (過去 30 日間)
To Tran Luan
To Tran Luan 2021 年 5 月 9 日
回答済み: Image Analyst 2022 年 5 月 14 日
So i been using sendmail() to try to send an email with matlab, but are there any way that I can put the output of one function in the content of the mail
for example
sendmail('myemail@gmail.com','SMART PARKING SYSTEM','Your license ... has resgister at: ') ;
are there anyway that the "your license is..." can be added the output of the previous function
please help
thank you

回答 (1 件)

Image Analyst
Image Analyst 2022 年 5 月 14 日
Make it a character array
str = sprintf('Your license ... has register at: %s', whatever) ;
sendmail('myemail@gmail.com','SMART PARKING SYSTEM', str) ;

カテゴリ

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