Update logic to support both symfony_mailer 1.x and 2.x

Closes #3592374

Merge request reports

Loading