Unlock this challenge:
Why should the url() Twig function be used instead of path() when generating links in emails?
url()
path()
The path() is deprecated in Twig and should not be used.
The url() generates absolute URLs, which are necessary for links in emails.
The path() only works in the dev environment.
dev
The url() is required for emails sent using external SMTP servers.