• 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: [NEWBIE] How to send an email with Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NEWBIE] How to send an email with Cocoa?


  • Subject: Re: [NEWBIE] How to send an email with Cocoa?
  • From: "Alexander F. Hartner" <email@hidden>
  • Date: Wed, 27 Oct 2004 15:32:28 +0200 (SAST)
  • Importance: Normal

How would this address the need to specify the outgoing mail server. I
think this would at best be the same as using the Framework suggested
earlier in this thread.

Seeing that there does not seem to be a objective C framework which allow
on e to specify the outgoing mail server used, it looks like one has to
use either a C or Java API. The preference would be towards C.

I have to point out that there are a number of unix commands which could
also be used to send mail, but I would not recommend it. Reeks a bit of a
hack.

Alex


> At 11:53 Uhr +0200 27.10.2004, stephane sudre wrote:
>>>>1) Is there a way, from inside Cocoa, to create a new email
>>>>message? Is there a way to get the user's default email client to
>>>>handle the sending of the message?
>
> You could try creating an NSURL of the following form:
>
> mailto:email@hidden?subject=foo&body=bar
>
> Of course you'll have to escape special characters, and some mail
> clients have a 255 character limit on the length of a URL, which will
> have impact on your message length... but for short,
> notification-style stuff this works.
> --
> Cheers,
> M. Uli Kusterer
> ------------------------------------------------------------
> "The Witnesses of TeachText are everywhere..."
> http://www.zathras.de
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [NEWBIE] How to send an email with Cocoa?
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: [NEWBIE] How to send an email with Cocoa?
      • From: stephane sudre <email@hidden>
References: 
 >Re: [NEWBIE] How to send an email with Cocoa? (From: stephane sudre <email@hidden>)
 >Re: [NEWBIE] How to send an email with Cocoa? (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: Re: System Idle Time
  • Next by Date: Re: [NEWBIE] How to send an email with Cocoa?
  • Previous by thread: Re: [NEWBIE] How to send an email with Cocoa?
  • Next by thread: Re: [NEWBIE] How to send an email with Cocoa?
  • Index(es):
    • Date
    • Thread