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 PROTECTED] 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/tcurdt%40vafer.org

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to