Skip navigation.
 
mlRe: [Q] NSMailDelivery sample code
FROM : j o a r
DATE : Sun Apr 24 11:10:26 2005

On 24 apr 2005, at 06.07, David Phillip Oster wrote:

> Can you be more specific? I've spent a few hours going through 
> literally hundreds of references to NSMailDelivery without finding 
> any of the discussions you are referring to.


Sure:

<http://www.cocoabuilder.com/search/archive/cocoa?words=NSMailDelivery>
<http://www.cocoabuilder.com/search/archive/cocoa?words=Pantomime>
<http://www.cocoabuilder.com/search/archive/cocoa?words=EDMessage>

> My problem seems to be that NSMailDelivery uses the SMTP settings 
> on the e-mail section of the Internet System Preferences panel, a 
> panel that doesn't exist in OS X 10.3. If you've never run an 
> earlier version of OS X on your machine, or have always used a 3rd 
> party mailer, then you don't have any values for those settings.


Exactly. NSMailDelivery only works if you're using Apple Mail, and 
IIRC there are other gotchas, like not being able to use ASMTP.

> So, what is the system of choice for sending an e-mail? Executing 
> the URL:
> <mailto:<email_removed>?subject=Test&body=test%20line%201%0Atest %
> 20line%202%0A> sort of works, for most mailers, but doesn't 
> actually send the mail.


That works fairly well in some email clients. The limitation you 
mention can be a problem for some scenarios, but might be OK in other 
cases.

j o a r

Related mailsAuthorDate
ml[Q] NSMailDelivery sample code David Phillip Oste… Apr 20, 05:59
mlRe: [Q] NSMailDelivery sample code j o a r Apr 21, 07:48
mlRe: [Q] NSMailDelivery sample code David Phillip Oste… Apr 24, 06:07
mlRe: [Q] NSMailDelivery sample code j o a r Apr 24, 11:10
mlRe: [Q] NSMailDelivery sample code Matt Neuburg Apr 24, 19:11