How can I send my make file after making process?

Hi everyone,
I would like to receive an email notification once the project's build process is completed. I am using Code Composer for building my project. The build process takes a considerable amount of time. Therefore, when the process is completed on our dedicated computer, I would like to receive an email containing the build file.
Thanks for helping.

5 件のコメント

Rik
Rik 2023 年 10 月 2 日
Your question is how to send an email with Matlab. Did you try anything? I already see 3 different links you could try in the side bar:
Entire Website
File Exchange
File Exchange
File Exchange
Mehmet Ali
Mehmet Ali 2023 年 10 月 2 日
Thanks for your reply.
I am trying Sends E-mail with Outlook OLE but while I am trying I am getting Error
I have Outlook instalation from Microsoft Store. Error :
>> sendEmailWithOutlook('mymail@gmail.com', 'Testmail', 'This is a test!', 0)
Error using actxserver
Server creation failed. Invalid ProgID 'Outlook.Application'.
Error in sendEmailWithOutlook (line 18)
outlook = actxserver('Outlook.Application');
Mario Malic
Mario Malic 2023 年 10 月 2 日
If you have Outlook from Microsoft 365, you have to set the option "Try the new Outlook" to "Off" @Mehmet Ali
Mehmet Ali
Mehmet Ali 2023 年 10 月 3 日
I don't have Microsoft 365 that's why I am trying it with different way.
Now I am trying it : Send email from Matlab!
I am setting my fn_email setserver with in this order stmp adress - e mail adress - password - email adress.
Then with fn_email command I am typing my receiver e mail than its creating me variable which name is ans.
Then when I am trying to send my e-mail with this command : 'sendmail ans' it's giving me error like
Error using sendmail
Not enough input arguments.
What should I do?
Dyuman Joshi
Dyuman Joshi 2023 年 11 月 23 日
"Then when I am trying to send my e-mail with this command : 'sendmail ans' it's giving me error like "
You need to use the proper syntax of the function sendmail. Go through the documentation page I linked for more informaiton.

サインインしてコメントする。

回答 (1 件)

Gagan Agarwal
Gagan Agarwal 2023 年 11 月 23 日

1 投票

Hi Mehmet
I understand that you are trying to send an email with MATLAB. You can use the 'sendmail' function of MATLAB to send the desired email.
Please refer to the following sample code for sending email through 'sendmail' function of MATLAB.
mail = 'mymail@gmail.com'; % your gmail address
password = 'mypassword'; % your gmail password
host = 'smtp.gmail.com'; % can be different for different mail server
setpref('Internet','SMTP_Server', host);
setpref('Internet','E_mail',mail);
setpref('Internet','SMTP_Username',mail);
setpref('Internet','SMTP_Password',password);
props = java.lang.System.getProperties;
props.setProperty('mail.smtp.auth','true')
props.setProperty('mail.smtp.starttls.enable','true')
% Send the email
sendmail(mail,'MATLAB Email','This is the body of the email');
For additional information please refer to the following documentation:
I hope it helps!

タグ

質問済み:

2023 年 10 月 2 日

コメント済み:

2023 年 11 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by