/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#import "MyHandler.h" @implementation MyHandler - (id)renderWithTransport:(BxTransport *)transport { if (! [transport.requestPath isEqualToString:@"/favicon.ico"]) { BxMailerAttachment *attachment = [[[BxMailerAttachment alloc] initWithName:@"cheese.jpg" path:@"/Users/dblais/Desktop/selected.png"] autorelease]; [[BxMailer systemMailer] sendMessage:@"The Message" subject:@"The Subject" headers:nil attachments:attachment, nil]; } return self; } @end