Fix Bug Sendmail_Core, do not set the format properly

This commit is contained in:
sparkyx 2025-10-07 13:15:23 +02:00
parent e2b82522bd
commit fe7c3bc259

View file

@ -60,7 +60,7 @@ class Sendmail_Core
* @return Sendmail_Core
*/
public function set_format($format) {
if ( in_array($this->format,['PLAIN','HTML'] ) == false) {
if ( in_array($format,['PLAIN','HTML'] ) == false) {
throw new \Exception('SC64 : unknow format ');
}
$this->format = $format;