我试图通过Matlab中的SMTP发送电子邮件。本指南是一个很好的入门指南:
https://nl.mathworks.com/help/matlab/import_export/sending-email.html
它归结为以下代码行(在2016b中测试):
setpref('Internet','E_mail','youraddress@yourserver.com');
setpref('Internet','SMTP_Server','mail.server.network');
sendmail('recipient@someserver.com','Hello From MATLAB!','body text here');
sendmail('recipient@someserver.com','Hello From MATLAB!','<strong style="color:red">HTML test</strong>');
如何启用HTML?设置某些首选项/编码这样简单吗?