JMail::addAttachment
Add file attachments to the email
Signature
public function addAttachment(mixed
$attachment,
[string
$name = '',
[string
$encoding = 'base64',
[string
$type = 'application/octet-stream']]] )
Parameters
-
$attachment
- Either a string or array of strings [filenames]
-
$name
- Either a string or array of strings [names]
-
$encoding
- The encoding of the attachment
-
$type
- The mime type
Returns
- JMail
- Returns this object for chaining.