Re: NSMailDelivery
Re: NSMailDelivery
- Subject: Re: NSMailDelivery
- From: Jim Mooney <email@hidden>
- Date: Tue, 25 Oct 2005 21:13:04 -0400
The NSMailDelivery class does work but there are some interesting
things that have happened over the last three version of OS X.
10.2 using a NSAttributedString containing html renders perfectly. It
encodes images and puts them in a self contained email and displays
almost perfectly
10.3 the message containing html gets rendered into a tiff file. One
long encoded inline image....text and all. Would be nice but the scale
and rendering is not perfect
10.4 it appears Apple changed the file format again. Now an
NSAttributedString of html gets converted to RTF with inline images.
The key to sending the email is saving the html file on the hard drive
and let a NSURL scope it up and toss it into a NSAttibutedString. Then
send the email but make sure you use the Mime protocol not ASC.
What I am bummed about is that 10.2 did it the best. Why mess it all
up? I was working at home with 10.2......got to work and spent 3 hours
debugging thinking something I did changed. Thinking the url I was
scooping up had Windows carriage returns in the html file......trying
everything. When I tested my app on a 10.3 a big light went on, Apple
was switching things big time. The only thing I can think of is
someone in the legal department saw that this feature was violating a
patent or something.
It would be nice for Enterprise apps to use the built in encoding and
email... Apple can you settle on something?
Jim
On Tuesday, May 3, 2005, at 11:07 AM, j o a r wrote:
Could you please check the list archives first?
(Hint: There are lots of problems with this framework, use an
alternative framework.)
j o a r
On 2005-05-03, at 17.00, mark levin wrote:
Are there any examples for using this class? I know it only has 3
methods, but the documentation there is a bit lacking, such as for
the required keys in the header dictionary.
How do I ensure the class is "properly configured"? Mail.app on the
machine has valid SMTP accounts set up, is there anything else
required? (And, mysteriously, deliverMessage:subject:to: works fine
while deliverMessage:headers:format:protocol: fails, all while
hasDeliveryClassBeenConfigured returns NO.) What's going on here?
<smime.p7s> _______________________________________________
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