email functionality is not working fine
<p>I have used the <code>MFMailComposeViewController</code> for sending the email in my code. I have also used the reachability code to check the internet connection. Internet connection is working fine. Whenever I used to send a mail from my code I got the message that email has been sent. But I didn't get any mail. There is no email which is sending from the app. I don't what is the reason behind this. If someone know how to get rid of this problem please provide me some solution.</p>

<pre><code>-(void)sendemail
{
    emailBody = @"";
    mail = [[MFMailComposeViewController alloc] init];
    mail.mailComposeDelegate = self;
    [mail setSubject:@"Report"];
    NSURL *url = [NSURL URLWithString:imagePath];
    NSData *data = [NSData dataWithContentsOfURL:url];
    [mail addAttachmentData:data mimeType:@"image/jpg" fileName:@"licence.png"];
    NSMutableString *breakline = [[NSMutableString alloc]init];
    [breakline appendString:[NSString stringWithFormat:@"&lt;br&gt;"]];
    NSArray *toRecipients = [NSArray arrayWithObject:@"m.garg@ldh.01s.in"]; 
    [mail setToRecipients:toRecipients];
    emailBody = [emailBody stringByAppendingFormat:@"%@%@%@%@%@%@%@%@%@%@%@%@%@%@%@%@%@%@%@%@%@%@%@%@%@%@",@"Name: ",namestr,breakline,@"Address: ", addresstr,breakline,@"Landmark: ",landmarkstr,breakline,@"City: ", citystr,breakline,@"State: ", statestr,breakline,@"PIN: ", pinstr,breakline,@"Contact No: ",phonestr,breakline,@"Licence:",licencestr,breakline,@"Email Id", emailstr];
    [mail setMessageBody:emailBody isHTML:YES];
    if (mail != nil) {
        [self presentModalViewController: mail animated: YES];
        [mail release];
    }
}
</code></pre>

<p>Thanks to all.</p>
