How can I send my make file after making process?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Dyuman Joshi
am 23 Nov. 2023
"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.
Antworten (1)
Gagan Agarwal
am 23 Nov. 2023
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!
0 Kommentare
Siehe auch
Kategorien
Mehr zu Web Services finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!