NSMailDelivery
NSMailDelivery
- Subject: NSMailDelivery
- From: email@hidden
- Date: Tue, 16 Apr 2002 12:12:29 -0700
>
+ (BOOL)deliverMessage: (NSAttributedString *)messageBody headers:
>
(NSDictionary *)messageHeaders format: (NSString *)messageFormat
>
protocol: (NSString *)deliveryProtocol;
>
//
>
// messageBody is the actual contents of the message. If
>
messageFormat is NSASCIIMailFormat,
>
// any rich text or attachments in messageBody will be lost
>
//
>
// messageHeaders contains all of the values that will appear in
>
the message header,
>
// for example, "To", "From", "Subject", etc. If the value is
>
an array, the elements
>
// in the array will converted to a comma seperated list of
>
values in the message header
Does anyone know how to tell NSMailDelivery about which account to send
the message From?
I have two accounts, my mac.com account and my local isp account. No
matter what I put in the From slot of messageHeaders, it always comes
from the first account (as they appear in Mail.app)
I looked around in Message.framework, and it's clear that it knows about
my accounts.
[MailAccount activeAccounts] returns three, my LocalAccount, my
iToolsAccount, and my POPAccount...
It seems like I need to get at the MailDelivery object and call
setAccount: on it. But of course NSMailDelivery hides everything that
it uses in static variables...
It's amazing how much stuff is in that framework... 142 classes!
Mail.app is just a ui on top of it.
Is there a workaround? Or do I have to wait for a new release of
NSMailDelivery?
While I'm on the topic, I've noticed that when you send NSMIMEMailFormat
it uses RTF as the format, as in Content-Type: text/enriched... this
unfortunately means that Outlook on Windows renders the message poorly!
Is there anyway to provide HTML as the format for rich text email? Is
this planned for any future releases?
_______________________________________________
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.