Closed christopherdarling closed 4 years ago
ereg() is removed in PHP 7.0 and should be replaced with something like preg_match() https://github.com/markguinn/silverstripe-email-helpers/blob/master/code/SmtpMailer.php#L356
ereg()
preg_match()
Although, as pointed out here (https://github.com/markguinn/silverstripe-email-helpers/issues/3) it doesn't look as though this code actually does anything, so perhaps could be removed.
ereg()
is removed in PHP 7.0 and should be replaced with something likepreg_match()
https://github.com/markguinn/silverstripe-email-helpers/blob/master/code/SmtpMailer.php#L356Although, as pointed out here (https://github.com/markguinn/silverstripe-email-helpers/issues/3) it doesn't look as though this code actually does anything, so perhaps could be removed.