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.
stringReturns the converted path.
getName() : \AttachmentNameInterface
getPath(boolean $absolutePath = true) : \AttachmentPathInterface
boolean(optional) Whether to return the absolute path or the relative one.
\AttachmentPathInterfaceAttachment path.
setName(\AttachmentNameInterface $name)
setPath(\AttachmentPathInterface $path)
path : string
| var |
|---|
string
name : string
| var |
|---|
string