Re: Sending an email
Re: Sending an email
- Subject: Re: Sending an email
- From: Stuart Ball <email@hidden>
- Date: Thu, 3 Oct 2002 00:01:41 +0100
Hello Folks,
Thanks for all the replies; there appears to be a variety of ways of
achieving this, however the one that achieves my aims the easiest is:
mail_error=[NSMailDelivery deliverMessage:@"Hello Stu" subject:@"Mail
Test" to:@"email@hidden"];
NSMailDelivery is found in Message.framework
Cheers,
Stu.
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.