Textpattern PHP Cross Reference Content Management Systems

Summary: /textpattern/vendors/Textpattern/Mail/AdapterInterface.php - 95 lines - 2342 bytes - Source - Print

Description: Mail implementation template.

Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

AdapterInterface:: (4 methods):
subject()
body()
header()
send()

Interface: AdapterInterface


subject($subject line: 35
Sets the subject.

<code>
Txp::get('\Textpattern\Mail\Compose')->subject('My subject');
</code>

return: AdapterInterface
param: string $subject The subject
body($body line: 49
Sets the message.

<code>
Txp::get('\Textpattern\Mail\Compose')->body('Plain-text based message.');
</code>

return: AdapterInterface
param: string $body The message
header($name, $value line: 63
Sets an additional header.

<code>
Txp::get('\Textpattern\Mail\Compose')->header('X-Mailer', 'abc_plugin');
</code>

return: AdapterInterface
param: string $name  The header name
param: string $value The value
send()  line: 78
Sends an email.

<code>
Txp::get('\Textpattern\Mail\Compose')
->to('to@example.com')
->from('from@example.com')
->subject('Subject')
->body('Hello world!')
->send();
</code>

return: AdapterInterface

title

Body