PHPMailer::AddAttachment
Adds an attachment from a path on the filesystem.
Returns false if the file could not be found or accessed.
Signature
public function AddAttachment(string
$path,
[string
$name = '',
[string
$encoding = 'base64',
[string
$type = 'application/octet-stream']]] )
Parameters
$path
— string- Path to the attachment.
$name
— string- Overrides the attachment name.
$encoding
— string- File encoding (see $Encoding).
$type
— string- File extension (MIME) type.
Returns
- bool