From name and email is always the site name and email when using a DSN transport

Created on 20 October 2023, 8 months ago
Updated 21 November 2023, 7 months ago

Problem/Motivation

I am using a DSN transport with mailgun. I've created a DSN in the symfony mailer UI and and correctly added my mailgun credentials.
I also added symfony/mailgun-mailer to my composer after following https://symfony.com/doc/current/mailer.html#transport-setup

This works, it does sends email, however the from Name and email is always the site default email and name.

If i switch to using a standard smtp transport and send the same email, the from header is the correct address that I am using.

Is there a setting that I'm overlooking somewhere that is making emails sent with a DSN transport use the site name/email in the from header?

πŸ’¬ Support request
Status

Fixed

Version

1.4

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States loze

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

Comments & Activities

  • Issue created by @loze
  • πŸ‡ΊπŸ‡ΈUnited States loze

    Also if I log the mail it has the correct from header. but somewhere by the time it gets to mailgun it has changed to the default name/mail

    I am sending a webform submission, if that helps. And I've tried changing both the from and sender in the webform email handler to no avail.

    I don't have a specific policy for this in symfony_mailer UI so its using the *all* policy, and in the policy there is nothing overriding the sender name/mail.

  • πŸ‡¬πŸ‡§United Kingdom AdamPS

    I don't think it comes from this module - maybe in the library, the transport or in mailgun

  • Status changed to Fixed 7 months ago
  • πŸ‡¬πŸ‡§United Kingdom AdamPS
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024