PHPMailer::addStringAttachment
Add a string or binary attachment (non-filesystem).
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,
[string
$encoding = 'base64',
[string
$type = '',
[string
$disposition = 'attachment']]] )
Parameters
$string
— string
String attachment data.$filename
— string
Name of the attachment.$encoding
— string
File encoding (see $Encoding).$type
— string
File extension (MIME) type.$disposition
— string
Disposition to use
Returns
- void
Violations
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
3012 | 122 | warning | Line exceeds 120 characters; contains 122 characters |