There is no way to do this in pure Cocoa, except using one of the three or four email libraries available (Pantomime is the one I know from my head). The main problem is that they are designed to implement a full email client, and not just send emails, so they are probably heavier than you need.
To display Growl MailMe, I wrote a command-line mail sending tool in Python . The Xcode project associates this with the MailMe plug-in package, and MailMe launches this tool using NSTask, passing the SMTP information that it finds in the Mail user settings. Growl is also open source, so you can read the source for displaying MailMe .
Things that won't work:
- , API 64- .
- mail (1), , SMTP- ( SMTP-, ).
, MailMe , MobileMe, MobileMe. , , !
, MailMe Mail . , , . -, Thunderbird, , , .