Skip navigation.
 
mlRe: [Q] NSMailDelivery sample code
FROM : David Phillip Oster
DATE : Sun Apr 24 06:07:23 2005

At 7:48 AM +0200 4/21/05, j o a r wrote:
>On 20 apr 2005, at 05.59, David Phillip Oster wrote:
>

>>Does anyone have a simple example of using NSMailDelivery?  On
>>every system I've tried, all the methods just return NO and do
>>nothing.

>
>Check the list archives for discussions on the problems with
>NSMailDelivery. Bottom line is, don't use it. There are other,
>better, alternatives.


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.

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.

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.

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