# SendMail from Mathematica 9 on MacOS 10.9

GROUPS:
 Christopher Purcell 1 Vote Could someone post an example of a SendMail command that works on MacOS 10.9 (Mavericks) with Mathematica 9?
8 months ago
6 Replies
 We will mention a few resources and after you try them you could perhaps give details on what exactly did not work out for you.
 Thank you but I had seen these already and a number of other references on this topic, but none were helpful. The original post was intentionally as concise as I could make it but if you are hungry for more:As your 3rd reference suggested I abandoned using the Apple iCloud mail server from SendMail and tried gmail instead, but with no improvement, using something like this: SendMail[  "To" -> "someone@mac.com",    "Subject" -> "Example Message",   "Body" -> "My text",    "From" -> "someone@gmail.com",   "Server" -> "smtp.gmail.com",    "UserName" -> "someone@gmail.com",   "Password" -> Automatic,   "PortNumber" -> 587,  "ServerAuthentication" -> Automatic,  "EncryptionProtocol" -> "StartTLS"]Mathematica returns $Failed and the message: "SendMail::msgerr: Mathematica received an unexpected response during message transport."I don't see anything in the system logs that indicate trouble. An undocumented "verbose" option accepted by SendMail would be nice about now. Needless to say Mathematica is able to pass the internet connectivity test to the Wolfram servers, and this computer is fully functional in regard to mail by standard means. Answer 8 months ago  Szabolcs Horvat 1 Vote The following has worked for me with Gmail, M 9.0.1, OSX 10.9SendMail["To" -> "somebody@domain.edu", "Subject" -> "Example Message", "Body" -> "My text", "From" -> "somebody@gmail.com", "Server" -> "smtp.gmail.com", "UserName" -> "somebody", "Password" -> Automatic, "PortNumber" -> 587, "EncryptionProtocol" -> "StartTLS"]It looks nearly identical to your version of the command. Answer 8 months ago  Thanks for sharing that. Now the mystery deepens, since as you say, your SendMail command version is essentially identical to mine, and it appears we have the same Mathematica and MAC OS versions. In fact if I use your template exactly (filling in the placeholders) the result is unchanged ($Failed and same message as above). Firewall settings have no effect.