NSMailDelivery
NSMailDelivery
- Subject: NSMailDelivery
- From: Nathan Wertman <email@hidden>
- Date: Thu, 27 Feb 2003 12:22:45 -0700
NEWBIE HERE...
I am trying to follow the example code posted on the following URL:
http://www.cocoadev.com/index.pl?SendingEmail
I can get everything working except I get a link error when trying to
use the NSMailDelivery Class. Is there a way to send an email without
opening the system's default mailer? I noticed that there is NO
documentation on apple's developer web site. Is there a different
Framework I should be using?
ERROR BEGINS HERE:
ld: warning prebinding disabled because of undefined symbols
ld: Undefined symbols:
.objc_class_name_NSMailDelivery
...failed StandaloneExecutable.LinkUsingFileList
/Users/nwertman/Working/Projects/Mailer/build/Mailer.app/Contents/
MacOS/Mailer ...
** BUILD FAILED **
CODE BEGINS HERE:
<<<<Controller.m>>>>>>
#import "Controller.h"
@implementation Controller- (IBAction) send: (id) sender
{
BOOL result;
NSString *message = [messageBody stringValue];
NSString *recipient = [toField stringValue];
NSString *subject = [subjectField stringValue];
result = [NSMailDelivery deliverMessage:message subject:subject
to:recipient];
if (result == NO) {
NSLog(@"Something broke...");
}
//[messageBody setStringValue:[toField stringValue]];
}
@end
<<<<<<Controller.h>>>>>>>>
#import <Cocoa/Cocoa.h>
#import <Message/NSMailDelivery.h>
@interface Controller : NSObject {
IBOutlet id messageBody;
IBOutlet id subjectField;
IBOutlet id toField;
}
- (IBAction) send: (id) sender;
@end
Thanks Nate
_______________________________________________
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.