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: Marc Weil <email@hidden>
- Date: Wed, 09 Jul 2003 19:31:20 -0400
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.
- Marc Weil
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT/CM d- s: a--- C++++>$ UB*++++ P++ L+ E---- W++++ N+ o? K- w---
O? M++>$ V? PS PE Y+ PGP t 5 X R- tv+ b+ DI-- D? G e(+++) h! !r y--
------END GEEK CODE BLOCK------
On 7/9/03 4:56 PM, "Tim Hewett" <email@hidden> wrote:
>
Hello,
>
>
I am trying to find out how to send a mail from within a Cocoa
>
app. It is possible in that iCal can do it as an option when
>
a scheduled event happens, but there doesn't seem to be
>
any documentation on how to do it... I need to be able to
>
fully populate the "To:", "Subject:" and main body under
>
program control, is it possible?
>
>
Cheers,
>
>
Tim.
>
_______________________________________________
>
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.
_______________________________________________
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.