in my Drupal 8 set up I am utilizing mailsystem module together with swiftmailer module. Every thing works high quality thus far, my swiftmailer twig template inside Drupal Development Company templates folder of my customized theme is acknowledged and works because it ought to normally.
Downside:
Once I need to embed a brand inside my template (as inline picture), Drupal Development Company picture cannot be loaded. It renders Drupal Development Company template and exhibits a damaged picture placeholder. I used Drupal Development Company code talked about in readme.txt (see level 3.2.2) of swiftmailer module:
<img src="picture:/themes/MYTHEME/brand.png">
Similar error once I use
<img src="picture:{{ base_url }}/themes/MYTHEME/brand.png">
Emblem path is usually working, use Drupal Development Company identical for my theme normally.
Drupal Development Company picture is embedded additionally inside Drupal Development Company electronic mail (utilizing MailHog to test it):
Content material-Kind: picture/png; title=brand.png Content material-Switch-Encoding: base64 Content material-ID: <f8a965e25fc041c5af9318b9d71cd3d1@mysite.web site> Content material-Disposition: inline; filename=brand.png .... picture code following ....
How can I get my brand picture inside my electronic mail accurately? Want to keep away from merely setting a linked picture it to my webserver if attainable,to attenuate webserver site visitors.
Thanks prematurely 🙂