Watch this Author's files
I get the same error message
??? Error using ==> sendmail Could not establish connection with smtp.gmail.com on port 25.
Contact us at files@mathworks.com