Skip to content

Commit 8f8feb6

Browse files
committed
fix trim nulls
1 parent 0322254 commit 8f8feb6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

MultipartEmail.php

+7-6
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,19 @@
1515
* @version 1.1 09.09.2022 (named headers and reply-to feature)
1616
* @version 1.1.1 29.02.2023 (email regexp allows absence of space between name and address)
1717
* @version 1.1.2 02.11.2024 (php8 hotfix: message must starts with '\n')
18+
* @version 1.1.3 05.11.2024 (fixed trim nulls deprecation)
1819
*/
1920
class MultipartEmail
2021
{
2122
const EMAIL_REGEXP = "/^(.+)\s*<(.+\@.+)>$/i";
2223

2324
protected $charset = 'UTF-8';
24-
protected $text;
25-
protected $html;
26-
protected $from;
27-
protected $to;
28-
protected $reply_to;
29-
protected $subject;
25+
protected $text = '';
26+
protected $html = '';
27+
protected $from = '';
28+
protected $to = '';
29+
protected $reply_to = '';
30+
protected $subject = '';
3031
protected $attachments = array();
3132
protected $headers = array();
3233

0 commit comments

Comments
 (0)