PHPMailer::addStringAttachment

Advertisement

Summery Summery

Add a string or binary attachment (non-filesystem).

Syntax Syntax

PHPMailer::addStringAttachment( string $string, string $filename, string $encoding = 'base64', string $type = '', string $disposition = 'attachment' )

Description Description

This method can be used to attach ascii or binary data, such as a BLOB record from a database.

Parameters Parameters

$string

(Required) String attachment data.

$filename

(Required) Name of the attachment.

$encoding

(Optional) File encoding (see $Encoding).

Default value: 'base64'

$type

(Optional) File extension (MIME) type.

Default value: ''

$disposition

(Optional) Disposition to use

Default value: 'attachment'

Return Return

(void)

Source Source

File: wp-includes/class-phpmailer.php


			

Advertisement

Advertisement

Leave a Reply