Friday, 9 March 2012

SMTP custom message formate


        NSDictionary *plainPart = [NSDictionary dictionaryWithObjectsAndKeys:@"text/html",kSKPSMTPPartContentTypeKey,
                                   [NSString stringWithFormat:@"<h1>Ask Us</h1><h2>Get the Answers You Need Now!</h2><b>Thank you for giving us your review</b><br/>"]
                                   ,kSKPSMTPPartMessageKey,@"8bit",kSKPSMTPPartContentTransferEncodingKey,nil];

        test_smtp_message.parts = [NSArray arrayWithObjects:plainPart, nil]; //vcfPart
        [test_smtp_message send];

1 comment: