Re: Sending Email with Attachments
Re: Sending Email with Attachments
- Subject: Re: Sending Email with Attachments
- From: Scott Anguish <email@hidden>
- Date: Fri, 24 Jan 2003 23:44:46 -0500
On Friday, January 24, 2003, at 11:49 AM, Joseph Jones wrote:
This look sgreat, and would be perfect except for one thing: I am not
sending a file but am attaching a generated NSMutableString (as if it
wer a
file). I realize I could write the file to disk, wrap it, attach it,
send it
and then delete it but that sure seems like a lot of extra work. Any
ideas
on how to do this w/o having to manage an external file?
The Message framework supports this.. but not SMTPAuth
+ (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
//
// messageFormat can be either NSASCIIMailFormat or NSMIMEMailFormat
//
_______________________________________________
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.