I’d try to set up gmail as an account in apple mail. When you have done that, and made that work, then you know a lot more. Maybe even mail.app helps you configure it! I have not set up a gmail account in apple mail, but I belive you may find that the smtp port number may be different. Maybe the ssl port 587 is the right one to use, really!
Have you tried to enter the command from commandline, and does it work then?
And which directory if any are you in then, you should also pipe your environment into a file, to see if there is any variables, that sendmail depends upon. you can start by issuing the command
set |more
To have a look at them.
Maybe you should also have a sleep after your sendmail command, before returning, to give the senmail a chance to process, before the connection is teared down again. This is just a shot in the dark!
Great suggestion. What was happening was that Little Snitch was blocking the perl process. So now I have it working from command line. Email successfully sent.
Maybe you should try just «class UTF8», and not Unicode text first!
The correct incantation in your particular case, is described by DJ Bazzie Wazzie in the very recent thread about problems with passwords to an smb server.
I’m sorry, I didn’t remembert the capitalization, and guessed that AS would coerce “UTF8” to correct text, this is what I meant, and I think the character set you are looking for is iso-8859-1 (Macroman).
but give this a try.
set thetext to "æåø"
set the clipboard to thetext as «class utf8»
Nope, it converts the accented characters to the Iso-8859-1 equivalents!
I have for instance “æåø” on the clipboard, then I run this:
do shell script "pbpaste |iconv -t ISO-8859-1 | pbcopy"
-->
I get this as result: ʯ (which looks perfectly like æåø in an iso-8859-1 encoded file.
If you have TextWrangler, you can make a document with 8859-1 encoding, and see for yourself, when you paste in the converted chars, saves it, closes it, or just reopens the document.