PHPMailer::AddStringAttachment
Adds a string or binary attachment (non-filesystem) to the list.
This method can be used to attach ascii or binary data, such as a BLOB record from a database.
Signature
public function AddStringAttachment(string
$string,
[string
$filename = 'base64',
[string
$encoding = 'base64',
[string
$type = '']]] )
Parameters
-
$string
- String attachment data.
-
$filename
- Name of the attachment.
-
$encoding
- File encoding (see $Encoding).
-
$type
- File extension (MIME) type.
Returns
- void