kaisellgren / mailer

Compose and send emails from Dart. Supports file attachments, HTML emails and multiple transport methods.
MIT License
166 stars 86 forks source link

[iOS 16.4] A strange bug. #233

Closed cddqssc closed 1 year ago

cddqssc commented 1 year ago

In release build mode, the body content is always empty even though I have set the body(body: 'test string')

But everything works fine in debug build mode.(There are no changes to the code between the debug and release builds.)

Android works fine in both release and debug modes.

May I ask if anyone has encountered a similar problem?(flutter_email_sender has the same problem.)

close2 commented 1 year ago

Hi @cddqssc !

Please try the debug output in your release build.

    Logger.root.level = Level.ALL;
    Logger.root.onRecord.listen((LogRecord rec) {
      print('${rec.level.name}: ${rec.time}: ${rec.message}');
    });