Setup cpanel Email DNS with Cloudflare
in order to link the website to Cloudflare and keep the emails working we need to add these DNSs into the Cloudfalre
First record :
Recrord Type = A
Name = mail
Content = {Cpanel Server IP}
Second Record
Recrord Type = MX
Name = example.com
Content = mail.example.com
in this case your email from webemail will be working as expected
Magento2 use equal in email template
In this wiki we will find a way to use "==" equal in the email template, actually there is no equal in the email template itself but we can refer to a phtml file and pass a variable to it then use the if/equal in the phtml file to do this you can easily add this code to the template
in the below example we will check if the payment method is bank transfer then we will write something