public function addAttachment(File|string
$file,
[null|string
$filename = NULL,
[boolean
$forcePublish = false]] )
Parameters
$file
—
object
The file object to attach to the email, or an absolute path to a file
$filename
—
object
The name of the file, must include extension. Will default to current filename
$forcePublish
—
boolean
Only applicable if the provided file is a {@link File} object. If the provided file is unpublished, setting this to true will publish it forcibly, immediately