Re: sending email from a cocoa app
Re: sending email from a cocoa app
- Subject: Re: sending email from a cocoa app
- From: Angela Brett <email@hidden>
- Date: Fri, 17 Aug 2001 12:50:25 +1200
Hi,
I like to send an e-mail from my Obj-C cocoa application. I don't
want to launch the user's default e-mail client but
rather want him to set his user name, password, smtp server address
etc in the Application preferences panel
and use this information to send out an e-mail complete with body,
subject etc.
As John pointed out to me earlier:
Add /System/Library/Frameworks/Message.framework to your project.
Read the notes in NSMailDelivery.h.
I used the + (BOOL)deliverMessage:(NSString *)messageBody
subject:(NSString *)messageSubject to:(NSString *)destinationAddress;
method, which sends an email without opening an email client, using
whatever their usual email settings are. I hope that's what you
wanted.
--
Angela Brett email@hidden
http://acronyms.co.nz/
"Great minds think different."