attachData abstract method

MailerInterface attachData(
  1. List<int> data,
  2. String name, {
  3. String? mimeType,
})

Attaches raw data as a file.

data is the file content as bytes. name is the attachment filename. mimeType is the MIME type of the attachment.

Implementation

MailerInterface attachData(
  List<int> data,
  String name, {
  String? mimeType,
});