• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: sending email from a cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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."


References: 
 >sending email from a cocoa app (From: email@hidden)

  • Prev by Date: Re: NSMovieView with subviews ?
  • Next by Date: Re: NSTask Progress
  • Previous by thread: sending email from a cocoa app
  • Next by thread: Interleaved (interwoven) raw images
  • Index(es):
    • Date
    • Thread