kaisellgren / mailer

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

Where is file name parameter? #236

Closed SittiphanSittisak closed 1 year ago

SittiphanSittisak commented 1 year ago

I send the file name with

mailer.Message().attachments = [mailer.FileAttachment(File(filePath))]

and my email got this file successfully. But I want to change the file name that displays in the email. Is this package has a function to do that? //my file name like 'ig20230201001_fdkslaflkjf_dklsufrfjdsf234r.pdf' I want to display with 'ig20230201001.pdf'

SittiphanSittisak commented 1 year ago

aw I miss it

FileAttachment(this._file, {String? contentType, String? fileName})