SEND_MAIL_MESSAGE is a function which send email to gmail. You need to initially edit the .m file to key in the parameters of your gmail account (like user name and password) from which you would like to send mail.
Pradyumna A (2021). Send Email to gmail account (https://www.mathworks.com/matlabcentral/fileexchange/20227-send-email-to-gmail-account), MATLAB Central File Exchange. Retrieved .
which setting of gmail should be changed?
Gmail users will need to change their gmail settings to allow access. You'll be prompted by gmail after trying to send the first email. By changing the settings you're greatly decreasing the security of your email. For this reason, I recommend creating an additional account for sending Matlab emails and make sure it's not associated with your other accounts.
Did the job but needed to mess with the inputs a bit.
Attachment was not optional (R2012b). But some minor modifications fixed it for me.
Yes, Dimitri Shvorob. Most of the code if from
Thanks for a nice and simple function. was really useful
It would have been nice to acknowledge the original source:
You are pretty much copy-pasting it.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!