Class EmailAttachment
Email attachment will serve as the path to the file that needs to be attached (located on the server).
category |
System |
---|---|
package |
|
subpackage |
Entities |
__construct(\AttachmentPathInterface $path = null, \AttachmentNameInterface $name = null)
Entity representing an email attachment.
_convertToRelativePath(\AttachmentPathInterface $path = null) : string
Due to different server setups this process can be tedious and hard to foresee. The following method contains the conversion logic and must be used in any setter of the class.
string
Returns the converted path.
getName() : \AttachmentNameInterface
getPath(boolean $absolutePath = true) : \AttachmentPathInterface
boolean
(optional) Whether to return the absolute path or the relative one.
\AttachmentPathInterface
Attachment path.
setName(\AttachmentNameInterface $name)
setPath(\AttachmentPathInterface $path)
path : string
var |
---|
string
name : string
var |
---|
string