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. to:@"[email protected]"
  11. from:@"[email protected]"
  12. headers:nil
  13. attachments:attachment, nil];
  14. }
  15. return self;
  16. }
  17.  
  18. @end

Report this snippet  

You need to login to post a comment.