I have run into a problem sending mail from within Mathematica. I can send attachments of most file types: .jpg, .nb, .xls, etc. I have run into a problem trying to send a zipped folder. I have looked for an explanation both here and on Gmail help, but have not been able to determine the cause of the problem. Any insight would be appreciated. Shown below are an example of an operation that works and an operation that fails.
The following works fine:
SendMail[
"To" -> "[email protected]",
"Subject" -> "Example of email sent from Mathematica",
"Body" ->
"Hi.. I am testing something. There should be a picture attached.",
"Attachments" -> "picture.JPG",
"From" -> "[email protected]",
"Server" -> "smtp.gmail.com",
"UserName" -> "[email protected]",
"Password" -> Automatic,
"PortNumber" -> 587,
"EncryptionProtocol" -> "StartTLS"]
{"MessageID" -> "[email protected]"}
Whereas this fails:
SendMail[
"To" -> "[email protected]",
"Subject" -> "Example of email sent from Mathematica",
"Body" ->
"Hi.. I am testing something. There should be a zipped folder attached.",
"Attachments" -> "stuff.zip",
"From" -> "[email protected]",
"Server" -> "smtp.gmail.com",
"UserName" -> "[email protected]",
"Password" -> Automatic,
"PortNumber" -> 587,
"EncryptionProtocol" -> "StartTLS"]
SendMail::timeout: A network operation for SendMail timed out. Please try again later. >>
$ Failed