expect "3?? *" {
} "5?? *" {
exit
} "4?? *" {
exit
}
send "From: $got_from\r"
send "To: $got_to\r"
send "Subject: $got_sub\r\r"
send "$got_msg"
send "\r\n.\r\n"
expect "2?? *" {
} "5?? *" {
exit
} "4?? *" {
exit
}
send "QUIT\r"
exit

\r\n instead of just \r does not help frown

session:

mail from: <myaddress@gmail.com>
250 2.1.0 OK f1sm21147552ixg.3
rcpt to: < myaddress@vftp.net>
250 2.1.5 OK f1sm21147552ixg.3
data
354 Go ahead f1sm21147552ixg.3
From: myaddress@gmail.com
To: myaddress@vftp.net
Subject: this is a test message

this is only a test

.

logout (ctrl-c pressed after some time)


Here's one that works on my non ssl mailserver:

MAIL FROM: < myaddress@me.com>
250 2.5.0 Address Ok.
RCPT TO: < myaddress@vftp.net>
250 2.1.5 myaddress@vftp.net OK.
DATA
354 Enter mail, end with a single ".".
From: myaddress@me.com
To: myaddress@vftp.net
Subject: this is a test message

this is only a test
.
250 2.5.0 Ok.
logout

So I thought I'd test with me.com's ssl on 587 with this:
openssl s_client -connect smtp.me.com:587 -starttls smtp

and it hangs, apparently unable to exchange certificates....

when I try to set it up that way in mail, THAT doesn't even work. It sets up, connection doctor tests it good, and yet when i try to send it gets an odd error:

"sending the message content to the server failed"

maybe my very bad luck and mobileme's ssl smtp is down today

...

well, 25 minutes on applecare phone and he's stumped. transferring to mobileme chat support. pity me.


I work for the Department of Redundancy Department