Render message body for subscriber
Usage
// basic usage
$string = $proMailerEmail->renderMessageBody(ProMailerMessage $message, ProMailerSubscriber $subscriber);
// usage with all arguments
$string = $proMailerEmail->renderMessageBody(ProMailerMessage $message, ProMailerSubscriber $subscriber, string $type = 'html');
Arguments
Name | Type(s) | Description |
---|---|---|
message | ProMailerMessage | |
subscriber | ProMailerSubscriber | |
type (optional) | string | Either "text" or "html" (default=html) |
Return value
string
Exceptions
Method can throw exceptions on error:
WireException
ProMailerEmail methods and properties
API reference based on ProcessWire core version 3.0.236