Pantomime in xcode3.0
Pantomime in xcode3.0
- Subject: Pantomime in xcode3.0
- From: email@hidden
- Date: Tue, 20 May 2008 07:38:10 -0400 (EDT)
- Importance: Normal
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