title: Xamarin C# Visual Studio - Automated Mailto - send email to user in code behind?
body: <p>I've updated my plist to LSApplicationQueriesSchemes value: mailto and I still receieve the error:</p>
  <p>-canOpenURL: failed for URL: &quot;mailto:&quot; - error: &quot;This app is not allowed to query for scheme mailto&quot;</p>
  <p>Any advice on this? I'd like an email I've constructed to be sent to the user on click.</p>
  <p><code>code</code>
  public async Task SendEmail(string body, List recipient)
  {
  try
  {
  var message = new EmailMessage
  {
  Subject = &quot;Password Reset&quot;,
  Body = body,
  To = recipient,
  //Cc = ccRecipients,
  //Bcc = bccRecipients
  };
  await Email.ComposeAsync(message);
  }
  catch (FeatureNotSupportedException fbsEx)
  {
  // Email is not supported on this device
  }
  catch (Exception ex)
  {
  // Some other exception occurred
  }
  }</p>
  <p><code>code</code></p>