• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Customizing Trial Mode messages

jekyll807

New Pleskian
Hello

Our trial mode messages see to work, but the "From" address and name are server defaults
e.g. From: Apache <apache@oneOfOurHosts.com>

Is there a place to configure this in the API or in the /usr/local/sb/config file?

Also, can we get the trial mode messages to send in HTML instead of plain text? the parameter passed is: initialMailHtml but it does not render correctly.

The API call is like ...
$message = '

Dear %siteOwnerName%,

etc ...
';

$properties = array(array(
'localeCode' => 'en_US',
'messages' => array(
'initialMailSubject' => $subject,
'initialMailHtml' => $message
)
));

$wpbApi->requestToApi('/system/trial-mode/messages/', WpbApi::pUT, array($properties));


We are using 11.5 Standalone on CentOS

Thanks
 
Hello,

I would like to customize the From email name and address for notices from the WPB - particularly the "New Trial" message.

Is there any options in /usr/local/sb/config or in the API that can change the From Name and address?

Currently it show From: Apache <apache@oneOfOurServers.com>

Thanks
 
WPB sends all mails like any other PHP-applications - with usage mail() function. Behavior of this function can be configured in php.ini (/usr/local/sb/etc/php.ini) with "sendmail_path" (do not forget to restart web server to apply changes).
Another way it's additional parameter in WPB config file (/usr/local/sb/config) section mail:
Code:
params = -f sales@example.com
 
Back
Top