diff --git a/inc/mail.php b/inc/mail.php index b4ca105510f046ae7ab6fa50ce7242405c659c5d..6bd3169b4c3056b3662a29f03e19c6e2b933b2be 100644 --- a/inc/mail.php +++ b/inc/mail.php @@ -121,6 +121,8 @@ function mail_encode_address($string,$header='',$names=true){ if(!utf8_isASCII($text)){ $text = '=?UTF-8?Q?'.mail_quotedprintable_encode($text).'?='; } + }else{ + $text = ''; } // add to header comma seperated and in new line to avoid too long headers