This class provides Postmarkapp Functionality that just plain works.
Methods
OwpPostmark constructor.
__construct($key, $from, string $reply = ''
)
Parameters
$key
$from
$reply
string
Add Attachment Method
attachment($name, $content, $content_type) : \OwpPostmark
method |
Add Attachment Method |
access |
public |
fluent |
This method is part of a fluent interface and will return the same instance |
Parameters
$name
$content
$content_type
Returns
\OwpPostmark
Set BCC To Method
bcc($bcc) : \OwpPostmark
method |
Set BCC To Method |
access |
public |
fluent |
This method is part of a fluent interface and will return the same instance |
Parameters
$bcc
Returns
\OwpPostmark
Set CC To Method
cc($cc) : \OwpPostmark
method |
Set CC To Method |
access |
public |
fluent |
This method is part of a fluent interface and will return the same instance |
Parameters
$cc
Returns
\OwpPostmark
Set HTML Message Method
html_message($html) : \OwpPostmark
method |
Set HTML Message Method |
access |
public |
fluent |
This method is part of a fluent interface and will return the same instance |
Parameters
$html
Returns
\OwpPostmark
Set PLAIN Text Message Method
plain_message($msg) : \OwpPostmark
method |
Set PLAIN Text Message Method |
access |
public |
fluent |
This method is part of a fluent interface and will return the same instance |
Parameters
$msg
Returns
\OwpPostmark
Send method
send() : boolean
method |
Send method |
access |
public |
Returns
boolean
Set Subject Method
subject($subject) : \OwpPostmark
method |
Set Subject Method |
access |
public |
fluent |
This method is part of a fluent interface and will return the same instance |
Parameters
$subject
Returns
\OwpPostmark
Set Tag Method
tag($tag) : \OwpPostmark
method |
Set Tag Method |
access |
public |
fluent |
This method is part of a fluent interface and will return the same instance |
Parameters
$tag
Returns
\OwpPostmark
Set Send To Method
to($to) : \OwpPostmark
method |
Set Send To Method |
access |
public |
fluent |
This method is part of a fluent interface and will return the same instance |
Parameters
$to
Returns
\OwpPostmark
Properties
Postmarkapp API Key
$api_key : string
Attachment Counter
$attachment_count : integer