Re: Sending an email
Re: Sending an email
- Subject: Re: Sending an email
- From: "Sven A. Schmidt" <email@hidden>
- Date: Wed, 2 Oct 2002 23:26:22 +0200
Stuart,
I don't think there's a ready to use cocoa framework for SMTP.
You could pipe the message body into an NSTask with a command "mail -s
<subject> <recipient>". Except for the permissions on some folders to
keep sendmail happy you don't need to configure anything for most
mails. You might have problems, though, when you try to send mail from
a dialup link whose address range is banned by some mail handlers.
HTH,
Sven
On Mittwoch, Oktober 2, 2002, at 09:46 Uhr, Stuart Ball wrote:
Hello folks,
Being a total new guy on the block with regards to Cocoa, I wondered
what is the most reliable way to get my Cocoa App to send an email to
a given address? Nothing I could find in the archives seemed relevant.
The first thing I thought of was find out if the users mail app was
running (if not launching it) then 'apple-eventing' it into doing what
I want (then quitting it if it wasn't running originally).
But this seems a little cumbersome and error prone. Is there a more
reliable/simpler way with Cocoa?
Thanks,
Stu.
_______________________________________________
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.