Represent a mail attachment that can be used in a MailMessage.
package |
Default |
---|
__construct()
addHeader( $arg0, $arg1) : $this
string
string
$this
a reference to this, so the API can be used fluently
create( $arg0 = null) : \io\vertx\jphp\ext\mail\MailAttachment
create()
create a MailAttachment object from a JsonObject representation
param $json [array] object to be copied create($json)
create a copy of a MailAttachment object
param $other [MailAttachment] object to be copied create($other)
array | MailAttachment
\io\vertx\jphp\ext\mail\MailAttachment
getContentId() : string
string
the content id
getContentType() : string
string
the contentType
getData() : \io\vertx\jphp\core\buffer\Buffer
getDescription() : string
string
the description
getDisposition() : string
string
the disposition
getHeaders() : \io\vertx\jphp\core\MultiMap
getName() : string
string
the name
setContentId( $arg0) : $this
string
$this
this to be able to use it fluently
setContentType( $arg0) : $this
string
$this
this to be able to use it fluently
setData( $arg0) : $this
Buffer
$this
this to be able to use it fluently
setDescription( $arg0) : $this
string
$this
this to be able to use it fluently
setDisposition( $arg0) : $this
string
$this
this to be able to use it fluently
setHeaders( $arg0) : $this
MultiMap
$this
this to be able to use it fluently
setName( $arg0) : $this
string
$this
this to be able to use it fluently
name is the descriptive filename that will be put into the mail i.e. usually a local filename without path this can be set to "" to omit the filename attribute
toJson() : array
array
the JSON object