I have a script that I have been using with the SENDMAIL function. The script works fine in MATLAB (R2010a) and (R2013a). However, in R2013b PreRelease, I obtain the following error:
Error using sendmail (line 168)
Could not connect to SMTP host: mail.myHost.com, port: 25;
Permission denied: connect
Or I see the following error:
Error using sendmail (line 172)
Could not connect to SMTP host: mail.myHost.com, port: 25;
Network is unreachable: connect
This happens even if I have the same SETPREF and email address as in R2010a and R2013a:
>> setpref('Internet', 'SMTP_Server', 'mail.myHost.com');
Best Answer