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. to:@"dominic@bombaxtic.com"
  10. from:@"dominic@bombaxtic.com"
  11. headers:[NSDictionary dictionaryWithObject:@"text/html"
  12. forKey:@"Content-Type"]];
  13. return self;
  14. }
  15.  
  16. @end

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.