• 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 an email
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Sending an email (From: "Sven A. Schmidt" <email@hidden>)

  • Prev by Date: Re: Carbon vs Cocoa
  • Next by Date: Re: NSSecureTextField bullets
  • Previous by thread: Re: Sending an email
  • Next by thread: GrabNGoPostMenuCleanup?
  • Index(es):
    • Date
    • Thread