Posted By

domhax on 02/14/10


Tagged

bxmailer bombax


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

umang_nine


Sending an HTML message with Bombax


 / Published in: Objective C
 

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

Report this snippet  

You need to login to post a comment.