buildMimeMessageWithRecommendedTextEncoding method Null safety

Future<MimeMessage?> buildMimeMessageWithRecommendedTextEncoding(
  1. MessageBuilder messageBuilder
)

Builds the mime message from the given messageBuilder with the recommended text encodings.

Implementation

Future<MimeMessage?> buildMimeMessageWithRecommendedTextEncoding(
    MessageBuilder messageBuilder) async {
  final supports8Bit = await supports8BitEncoding();
  messageBuilder.setRecommendedTextEncoding(supports8Bit);
  return messageBuilder.buildMimeMessage();
}