Matlab Mail Feedback

版本 1.2.0 (7.9 KB) 作者: Daniele Mascali
Set of functions for receiving mail feedback from Matlab
64.0 次下载
更新时间 2019/3/12

Set of functions for receiving mail feedback from Matlab.

1) sendstatus(to,verbose) sends the exit status of a script/function to the mail addresses specified in to. In case of failure the function that caused the error will be attached.
2) sendmsg(to,subject,message,attachments) uses matlab sendmail function to send mail pre-compiled with a set of useful info (works as matlab sendmail).

INSTALLATION:
-Add the folder to you MATLAB path.
-Configure sendsetup.m with the info of the email address from which you wish to send matlab feedback. If you use a gmail account, you only have to fill the fields sender_mail and password. If you use another mail service, you will also have to change the SMTP parameters.

USAGE:
sendstatus(to,verbose) must be placed as the FIRST line of code of a matlab script/function. to is either a string specifying a single address, or a cell array of addresses. verbose (optional): [0 1 2]. Select the "verbosity" of the attachments in case of failure:
- 0: no attachment
- 1: sends just the file that caused the error (default)
- 2: sends all the stacked files

sendmsg(to,subject,message,attachments) works as matlab sendmail (see: https://it.mathworks.com/help/matlab/ref/sendmail.html).

MATLAB 版本兼容性
创建方式 R2016b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Web Services 的更多信息

Community Treasure Hunt

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

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.2.0

Added elapsed time also for sendmsg (when it is used in combination with sendstatus)

1.1.1

clean up

1.1.0

Added elapsed time

1.0.1

updated description

1.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库