This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (IBAction)sendEmail:(id)sender { | |
MCOMessageBuilder *builder = [[MCOMessageBuilder alloc] init]; | |
MCOAddress *address = [MCOAddress addressWithDisplayName:@"Uplant Support" mailbox:@"noreply.uplant@gmail.com"]; | |
NSArray *to = [NSArray arrayWithObject:[MCOAddress addressWithDisplayName:@"Glenn Posadas" mailbox:@"admin@glennvon.com"]]; | |
[[builder header] setFrom:address]; | |
[[builder header] setTo:to]; | |
[[builder header] setSubject:@"This is a nice subject"]; | |
[builder setHTMLBody:@"The motherloving body."]; |