title: how to mail forget password in iphone
body: <p>I am developing an application, i want to know how to achive forget password scenario in iPhone.</p>
  
  <p>When user forget their password then I have a button in my app when i click on it <code>UIAlertView</code> open in which i have a textfield, user must enter their email address and the password get mail on that mail id.</p>
  
  <p>How can I do that I have define a action for button this is the code:</p>
  
  <pre><code>-(IBAction)forgetpassword:(id)sender
  {
      UIAlertView *av = [[UIAlertView alloc]initWithTitle:@"Forget Password" message:@"Please Enter your Email address " delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil];
      av.alertViewStyle = UIAlertViewStylePlainTextInput;
      [av textFieldAtIndex:0].delegate = self;
      [av show];
  }
  </code></pre>
  
  <p>but what i need is just require the code to which i can use and mail the password to the email id which user will entered. </p>