Re: How to send a mail from within a program
Re: How to send a mail from within a program
- Subject: Re: How to send a mail from within a program
- From: email@hidden
- Date: Wed, 9 Jul 2003 22:53:25 -0600
On Wed, Jul 09, 2003 at 07:31:20PM -0400, Marc Weil wrote:
>
Of course it's possible. Just find the RFC document on the SMTP Protocol and
>
write a simple mail client. ;-)
>
>
There are only three other ways to do this, and only one of them is a good
>
way. The two bad ways are to either use the Message framework (which is
>
really horrible), or to use the EDMessage framework (which is 99%
>
undocumented because the developer doesn't feel like writing any). The only
>
other good method I can think of is writing a Perl script that uses the
>
mail() function, and including it in your app's bundle and using an NSTask
>
and an NSPipe to call the script and have it send what you need instead of
>
worrying about implementing the functions in Cocoa.
Well, the 1% of EDMessage that *is* documented happens to be the part on
sending mail. So it is a viable option, if perl isn't your thing.
David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.