title: How to compose an email with HTML in Flutter?
body: <p>I am using <a href="https://pub.dartlang.org/packages/flutter_email_sender" rel="nofollow noreferrer">flutter_email_sender</a> to compose an email using the native iOS Mail app inside my Flutter app:</p>
  
  <pre class="lang-dart prettyprint-override"><code>import 'package:flutter_email_sender/flutter_email_sender.dart';
  Future&lt;void&gt; sendEmail(String subject, String body) async {
    final Email email = Email(
      body: body,
      subject: subject,
    );
    String platformResponse;
    try {
      await FlutterEmailSender.send(email);
      platformResponse = 'success';
    } catch (error) {
      platformResponse = error.toString();
    }
    if (!mounted) return;
    print(platformResponse);
  }
  </code></pre>
  
  <p>However my goal is to send HTML in the body of the email. When I pass markup to <code>String body</code> the email is composed but not in markup, just text. </p>
  
  <p>I am aware of <a href="https://pub.dartlang.org/packages/url_launcher" rel="nofollow noreferrer">url_launcher</a> but that package launches the Mail app. I want the email composed as if I was calling <a href="https://developer.apple.com/documentation/messageui/mfmailcomposeviewcontroller" rel="nofollow noreferrer">MFMailComposeViewController</a> in iOS.</p>