attach abstract method

MailerInterface attach(
  1. String path, {
  2. String? name,
  3. String? mimeType,
})

Attaches a file to the email.

path is the file path on disk. name is the optional display name for the attachment. mimeType is the optional MIME type.

Implementation

MailerInterface attach(String path, {String? name, String? mimeType});