Send Email With Attachment Flutter(IOS)

Issue

I have a problem when send email in flutter(IOS). I use flutter_email_sender lib.

Future<void> send() async {
    final Email email = Email(
      body: _bodyController.text,
      subject: _subjectController.text,
      recipients: [_recipientController.text],
      attachmentPath: attachment,
      isHTML: isHTML,
    );
    await FlutterEmailSender.send(email);
  }

button... onPressed: send()
==> Unhandled Exception: PlatformException(not_available, No email clients found!, null)

Solution

I had the same issue on iOS. It was caused because iOS hadn’t set up the default Mail Application. Did you setting it on Setting app?

Answered By – Trần Đức Tâm

Answer Checked By – Robin (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *