Default Symfony Logo attached to all emails

Created on 27 June 2025, 2 months ago

Problem/Motivation

Default Symfony Logo (logo.png) is attached to all emails sent. This just started happening a few weeks ago, though reverting to previous versions to debug has not seemed to correct the issue. No other customizations were made to the site configuration recently.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

1.6

Component

Miscellaneous

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @amysiano4x3
  • 🇬🇧United Kingdom adamps

    The string "logo.png" is only in TestEmailBuilder.php. I think the problem is something local on your site.

  • Yes I did see that it is only in the test.php but for some reason it has started showing up in all emails. I have not made any changes to the Symfony mailer config.

    Emails are sent through eca as html and mass contact message.

  • See attached screenshots.

  • Previous messages do not have the attached logo.

  • I have been wrestling with this for a week. The logo issue goes away if I downgrade an lock module at 1.5. Now having an config sync issue with the mailer transport sub module not being installed. Ideally it would be great to find a solution to the default logo and move back to the latest release.

    I am using ECA HTML Email to send mail. All emails have the default logo attached. There is no customization beyond adding Sendgrid SMTP as the mail server. Let me know what additional info I can provide to help test.

  • Line 51 of TestEmailBuilder.php - commenting out line 61 and 62 is the only thing that removes the logo from my (non-test) emails. Please advise.

    /**
    * {@inheritdoc}
    */
    public function build(EmailInterface $email) {
    $logo = \Drupal::service('extension.list.module')->getPath('symfony_mailer') . '/logo.png';
    $logo_uri = \Drupal::service('file_url_generator')->generateString($logo);

    // - Add a custom CSS library, defined in symfony_mailer.libraries.yml.
    // - The CSS is defined in test.email.css.
    // - Set variables, used by the mailer policy defined in
    // symfony_mailer.mailer_policy.symfony_mailer.test.yml.
    // - Add an attachment.
    $email->addLibrary('symfony_mailer/test')
    // ->attach(Attachment::fromPath($logo_uri, isUri: TRUE))
    // ->setVariable('logo_url', $logo_uri)
    ->setVariable('day', date("l"));
    }

    }

    }

  • 🇷🇺Russia a.sinitsa

    Same problem using ECA HTML Email too

Production build 0.71.5 2024