From: David Reiss on
This is working fine for me on my OSX system (10.6.5).

--David

On Jun 5, 7:31 am, Luis <lgmen...(a)gmail.com> wrote:
> Dear all,
>
> In my laptop running Mac OS X (10.6.3) I can not send an email using
> the function SendMail (under Linux operative system the code works)
> Mathematica version 7.0 1.0:
>
> SendMail["To" -> "x...(a)gmail.com",
> "Subject" -> "GMail Test Message",
> "Body" -> "Test email sent via GMail.",
> "From" -> "x...(a)gmail.com", "Server" -> "smtp.gmail.com",
> "PortNumber" -> 587, "EncryptionProtocol" -> "StartTLS",
> "UserName" -> "x...(a)gmail.com", "Password" -> Automatic]
>
> Output-> SendMail::"msgerr" : "
> StyleBox[\"\\\"\<Mathematica received an unexpected response during
> message \
> transport.\>\\\"\", \"MT\"] ButtonBox["",
> Appearance->{Automatic, None},
> BaseStyle->"Link",
> ButtonData:>"paclet:ref/SendMail",
> ButtonNote->"SendMail::msgerr"] "
>
> Any suggestion?
> All my best,
> Luis


From: Eric Brown on
Hi Luis,
You can enable postfix on your Mac. Then point Mathematica at your localhost on SMTP port 25. All of this is made really easy with the use of MailServe.
I then use postfix to relay through my usual mail server, but it is possible to send directly from your machine.
Best
Eric



From: telefunkenvf14 on
On Jun 5, 6:31 am, Luis <lgmen...(a)gmail.com> wrote:
> Dear all,
>
> In my laptop running Mac OS X (10.6.3) I can not send an email using
> the function SendMail (under Linux operative system the code works)
> Mathematica version 7.0 1.0:
>
> SendMail["To" -> "x...(a)gmail.com",
> "Subject" -> "GMail Test Message",
> "Body" -> "Test email sent via GMail.",
> "From" -> "x...(a)gmail.com", "Server" -> "smtp.gmail.com",
> "PortNumber" -> 587, "EncryptionProtocol" -> "StartTLS",
> "UserName" -> "x...(a)gmail.com", "Password" -> Automatic]
>
> Output-> SendMail::"msgerr" : "
> StyleBox[\"\\\"\<Mathematica received an unexpected response during
> message \
> transport.\>\\\"\", \"MT\"] ButtonBox["",
> Appearance->{Automatic, None},
> BaseStyle->"Link",
> ButtonData:>"paclet:ref/SendMail",
> ButtonNote->"SendMail::msgerr"] "
>
> Any suggestion?
> All my best,
> Luis

I'm on Windowz (not sure if that matters or not). Here are three
guesses: (third is probably the best)

1. Open up 'preferences' -> 'internet connectivity' -> 'proxy
settings' and then play around with the options available. You might
also try 'Test Internet Connectivity' to see if Mathematica is being blocked
somehow.

2. Another idea: try changing StartTLS to TLS. (more of a wild guess---
I actually use Gmail too, and happen to know StartTLS works for me,
but maybe something is different on Mac).

3. Finally, I would recommend configuring as much of the mail/server
info as possible in the 'preferences' -> 'internet connectivity' ->
'mail settings'. I actually had my students send me email messages and
SMS messages and I replied to their phones. I seem to recall students
having trouble if these settings weren't filled out or were in
conflict with any options explicitly used in code (as you seem to be
doing above, with the port number, encryption settings, etc.)

-RG

From: Lambert Chao on
Hi Luis,

This problem occurs with SendMail because of an issue Apple introduced with
Java for Mac OS X 10.6 Update 1. It also affects Import from https sites in
Mathematica.

Updating to the latest Java for Mac OS X 10.6 Update 2 should address the
issue.

Regards,

Lambert Chao
lambertc(a)wolfram.com
Software Technology
Wolfram Research, Inc.

-----Original Message-----
From: l-mathgroup-bounces(a)wolfram.com
[mailto:l-mathgroup-bounces(a)wolfram.com] On Behalf Of telefunkenvf14
Sent: Sunday, June 06, 2010 5:42 AM
Subject: Re: SendMail under Mac OS X

On Jun 5, 6:31 am, Luis <lgmen...(a)gmail.com> wrote:
> Dear all,
>
> In my laptop running Mac OS X (10.6.3) I can not send an email using
> the function SendMail (under Linux operative system the code works)
> Mathematica version 7.0 1.0:
>
> SendMail["To" -> "x...(a)gmail.com",
> "Subject" -> "GMail Test Message",
> "Body" -> "Test email sent via GMail.",
> "From" -> "x...(a)gmail.com", "Server" -> "smtp.gmail.com",
> "PortNumber" -> 587, "EncryptionProtocol" -> "StartTLS",
> "UserName" -> "x...(a)gmail.com", "Password" -> Automatic]
>
> Output-> SendMail::"msgerr" : "
> StyleBox[\"\\\"\<Mathematica received an unexpected response during
> message \
> transport.\>\\\"\", \"MT\"] ButtonBox["",
> Appearance->{Automatic, None},
> BaseStyle->"Link",
> ButtonData:>"paclet:ref/SendMail",
> ButtonNote->"SendMail::msgerr"] "
>
> Any suggestion?
> All my best,
> Luis

I'm on Windowz (not sure if that matters or not). Here are three
guesses: (third is probably the best)

1. Open up 'preferences' -> 'internet connectivity' -> 'proxy
settings' and then play around with the options available. You might
also try 'Test Internet Connectivity' to see if Mathematica is being blocked
somehow.

2. Another idea: try changing StartTLS to TLS. (more of a wild guess---
I actually use Gmail too, and happen to know StartTLS works for me,
but maybe something is different on Mac).

3. Finally, I would recommend configuring as much of the mail/server
info as possible in the 'preferences' -> 'internet connectivity' ->
'mail settings'. I actually had my students send me email messages and
SMS messages and I replied to their phones. I seem to recall students
having trouble if these settings weren't filled out or were in
conflict with any options explicitly used in code (as you seem to be
doing above, with the port number, encryption settings, etc.)

-RG