Email body does not appear after sending from iPhone via code

I have a couple of iPhone apps that send an email by code. I noticed quite a lot of letters coming from clients where everything is filled out, with the exception of the body message (I always see their signature).

I sent a test message using the same application from my iPhone device and I received a message (simple message "this is a test message").

I wonder if there is any encoding that needs to happen to handle another version of iOS or possibly different iPhone devices?

Has anyone noticed this before?

+3
source share
2 answers

, . , , , , - , , .

0

             MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init];

    controller.mailComposeDelegate = self;

    NSString *sub= [NSString stringWithFormat:@"The Black Sheep App: %@ Specials",[[BarSplArr objectAtIndex:0]objectForKey:@"barname"]];

    NSString *message=[NSString stringWithFormat:@"Check out these specials for %@ on %@, %@ \n\n %@",[[BarSplArr objectAtIndex:0]objectForKey:@"barname"],day,date,[[BarSplArr objectAtIndex:0]objectForKey:@"drinkspecials"] ];

    [controller setSubject:sub];

    [controller setMessageBody:message isHTML:NO];

    [self presentModalViewController:controller animated:YES];

    [controller release];
0

Source: https://habr.com/ru/post/1792400/


All Articles