Unfortunately both hardcode the sender email address.
Configure sender email address and name
Back in the Magento days we had a couple of email addresses to chose from, but Shopware has only one, it is configured in Settings > Basic information:
To access this information you need to inject a \Shopware\Core\System\SystemConfig\SystemConfigService into your self implemented EmailService.
Make sure to provide the right context, so depending on the sales channel the correct configuration is used, especially if your EmailService is used inside a queued message, so the context might be gone. Confirm that you either can recreate it or pass it on from where the message is sourced.
You like typing? Shopware has you!
On the SystemConfigService we even have different methods to make sure the return type we get is correct, thanks Shopware! <3
Update March 5th 2024: My colleague Bruno told me, that I used the wrong services – writing blog posts without testing is a stupid idea, but increases output by a lot.