Hi,
we are currently testing OsClass 8.3.0 for a little internal intranet purpose; everything is fine except e-mails: All e-mails like contact form or our own function using osc_sendMail sends e-mails out with correct subject/title but no content. We've checked multiple clients to ensure there is no view problem and multiple $body versions (HTML, Text-only) with same results: Empty e-mail body.
Here is an example of our e-mail function:
function email_on_new_item_osclass() {
$subject = 'New item added ';
$body = 'Test E-Mail';
$emailParams = array(
'subject' => $subject,
'to' => '[email protected]',
'to_name' => 'xxxx',
'body' => $body,
'alt_body' => $body);
osc_sendMail($emailParams);
}
osc_add_hook('posted_item', 'email_on_new_item_osclass');(Sorry for posting not as code block - i got an error that i cannot post external links if i use it)
After some further tests we found the same problem using the contact form - correct subjects but empty e-mail bodies. So it seems this issue is system related. Our system:
PHP version: 8.2.27
MySQL version: 11.7.2-MariaDB-ubu2404
Any ideas why our OsClass always sends empty e-mail bodies?
Many thanks,
Erik