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 = '']]] )
Parameters
-
$path
- Path to the attachment.
-
$name
- Overrides the attachment name.
-
$encoding
- File encoding (see $Encoding).
-
$type
- File extension (MIME) type.
Returns
- bool