Hi all,
In my application I have to send feedback to the client's email.
Here is my code,
-(void) send:(id) sender {
    [self sendEmailTo:[txtTo text] withSubject:[txtSubject text] withBody:[txtBody text]];
}
-(void) sendEmailTo:(NSString *)to withSubject:(NSString *) subject withBody:(NSString*)body {
    NSString *mailString = [NSString stringWithFormat:@"mailto:?to=%@&subject=%@body=%@",
    [to stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding],
    [subject stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding],
    [body stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:mailString]];
}
But this does not work. Is it require any type of SMTP setting or something else? I tried apple's MailComposer sample but it also does not work.
Please help me.