BxMailer attachment with nil header field


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.