File Exchange

image thumbnail

Send Messages to Emails and/or Cell Phones

version 1.3.0.1 (5.13 KB) by Georgios Papachristoudis
This function sends messages to emails and/or cell phones (from a Gmail account)

6 Downloads

Updated 14 Aug 2019

View License

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.

Cite As

Georgios Papachristoudis (2019). 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 .

Comments and Ratings (6)

Emily Dahl

Ignore my previous message. Sorry. I meant to say paste the error message:

Error using sendmail (line 171)
Authentication failed.

Error in send_msg (line 159)
sendmail(recipients,subject,message);

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:
http://danielherber.cloudvent.net/matlab.html?option=post_2

Updates

1.3.0.1

Removed some identifiable information.

1.3.0.0

Changed the title.

1.2.0.0

Fixed one more bug that was checking between the correspondence of phone numbers and carriers.

1.1.0.0

Fixed a bug that was occurring when user did not specify any carriers.

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Send Text Message to Cell Phone

send_msg