Sending an HTML message with Bombax


/ 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. NSString *htmlMessage = @"<html><body>This is an <em>HTML</em> message.<br /> &mdash; <a href='http://www.bombaxtic.com'>www.bombaxtic.com</a></body></html>";
  7. [[BxMailer systemMailer] sendMessage:htmlMessage
  8. subject:@"Html Message"
  9. headers:[NSDictionary dictionaryWithObject:@"text/html"
  10. forKey:@"Content-Type"]];
  11. return self;
  12. }
  13.  
  14. @end

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.