Posted By

domhax on 02/15/10


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

ericschweichler
umang_nine


BxMailer attachment with nil header field


 / Published in: Objective C
 

  1. #import "MyHandler.h"
  2.  
  3. @implementation MyHandler
  4.  
  5. - (id)renderWithTransport:(BxTransport *)transport {
  6. if (! [transport.requestPath isEqualToString:@"/favicon.ico"]) {
  7. BxMailerAttachment *attachment = [[[BxMailerAttachment alloc] initWithName:@"cheese.jpg" path:@"/Users/dblais/Desktop/selected.png"] autorelease];
  8. [[BxMailer systemMailer] sendMessage:@"The Message"
  9. subject:@"The Subject"
  10. headers:nil
  11. attachments:attachment, nil];
  12. }
  13. return self;
  14. }
  15.  
  16. @end

Report this snippet  

You need to login to post a comment.