Re: NSMailDelivery
Re: NSMailDelivery
- Subject: Re: NSMailDelivery
- From: Ryan Britton <email@hidden>
- Date: Wed, 22 Feb 2006 10:04:52 -0800
The settings were in that path in earlier versions of OS X only. At
some point (I don't remember which version off the top of my head),
that was deprecated and the settings became internal to Mail itself.
If Mail is not configured with an email account, then NSMailDelivery
will not work. Since some users may use Thunderbird or Entourage,
it's entirely possible that this will fail since it is not aware of
other locations to get mail settings.
On Feb 22, 2006, at 9:35 AM, devmaillists wrote:
Dear List,
I try to use in our product NSMailDelivery to send a feedback to
the user.
But I do not get it reliable to work.
In some discussions they tell to do the right settings of
System Preferences-> Internet -> Mail.
But there are no system preferences with that name.
So what could cause NSMailDelivery to work so fuzzy.
the result of deliverMessage is now on this machine I am working on
always NO.
My Sample:
if([NSMailDelivery hasDeliveryClassBeenConfigured]){
if(senderMailAdd && eMailAdd && theSubject && theBody){
NS_DURING
if([NSMailDelivery deliverMessage:theBody subject:theSubject
to:eMailAdd]){
result= YES;
}
NS_HANDLER
NSLog(@"NSMailDelivery: an exception was raised: %@",
[localException reason]);
NS_ENDHANDLER
}
}
Any suggestions welcome.
Thx Jürgen Sauerzapf
_______________________________________________
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