Re: Pantomime in xcode3.0
Re: Pantomime in xcode3.0
- Subject: Re: Pantomime in xcode3.0
- From: Torsten Curdt <email@hidden>
- Date: Tue, 20 May 2008 13:54:10 +0200
Cross posting is really not appropriate (...and I am wondering what
this has to do with XCode 3.0)
Please check out the source code from GNUMail as an example on how to
send multipart messages with Pantomime.
See EditWindowController.m
cheers
--
Torsten
On May 20, 2008, at 13:38, email@hidden wrote:
I'm using pantomime for sending mail without using mail client.I
could
use this framework to send attachments by using the following code.
[message setContentType:@"multipart/mixed"];
[message setContentTransferEncoding: PantomimeEncodingBase64];
[message setCharset: @"us-ascii"];
[message setContentDisposition: PantomimeAttachmentDisposition];
[message setFilename:fileNames];
[message setContent:[newFile contentsAtPath:file]];
I could also send text document by using following code.
[message setContentType:@"text/html"];
[message setContentTransferEncoding: PantomimeEncodingNone];
[message setCharset: @"us-ascii"];
[message setContent:[[self messageToSend]dataUsingEncoding:
NSASCIIStringEncoding]];
But in this [message setContent] can set only one content at a time
so How
can i send both attachment and text using this framework?Is there
any way
to send both of them?Please help me.
Thanks.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden