This function sends messages to emails and/or cell phones assuming you are sending from a Gmail account. Support for text messaging only within the US.
You can easily tweak the code to make it send from other accounts (other than Gmail). Please look inside the function help section for more details.
Georgios Papachristoudis (2020). Send Messages to Emails and/or Cell Phones (https://www.mathworks.com/matlabcentral/fileexchange/48143-send-messages-to-emails-and-or-cell-phones), MATLAB Central File Exchange. Retrieved .
Ignore my previous message. Sorry. I meant to say paste the error message:
Error using sendmail (line 171)
Error in send_msg (line 159)
This does not work error:
Error using cellfun
Input #2 expected to be a cell array, was char instead.
Error in send_msg (line 73)
I = cellfun(@isnumeric,recipients);
thx very mutch
Great submission. This provides the exactly functionality I was looking for.
I also wrote some additional code for this submission that can send dynamic notifications. The code demonstrates how to include the command prompt output, total computation time, function name, and even error messages (so you can restart your code). Please find my write-up here:
Inspired by: Send Text Message to Cell Phone
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!