using MATLAB to send email through Outlook

5 次查看(过去 30 天)
I need to use MATLAB to send emails of reports using Outlook 2010.
I cannot use sendmail. My SMTP server in the building requires authentication, and users cannot access the server directly, per IT. Bummer...
I did find one that works, but it uses a personal email to do it, and I don't want to run into problems with sending work info through personal email.
It can be found here under the "Once again the attached code." link towards the bottom of the page :
I've also tried to use ActiveX, but I cannot find one that works. Is this because of not being allowed to connect to my SMTP server at work? Examples of what I've tried:
Does anyone have any ideas that I could try? I appreciate any help!
  3 个评论
John
John 2015-6-2
Found this one:
I'm following the syntax to call the function, but it's not working. I get this error:
Error: Operation aborted
Error in sendEmailWithOutlook (line 27)
email.Recipients.Add(emailAddress);
John
John 2015-6-3
Anyone got any tips I could try? Is it possible for me to use ActiveX to connect MATLAB to Outlook if I cannot authenticate to the SMTP server? Or should I try another way?

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by