I have a requirement in which email notification we have to provide a link which will redirect approver immediately to the approval page. I found one relevant solution mentioned in below URL
URL :-
which says to create visualforce component, I wanted to check if we can user LWC instead of visualforce.
As I am new to LWC expecting some help to understand if we can call LWC component inside Visualforce Email Template.
I have followed the same steps but wanted to know If I can use LWC compoenent or Aura instead of VF page compoenent
No.
Think about it. You want to create an email that on opening would immediately start a browser (hope the user is logged in to salesforce) and navigate to some page? without user clicking anything? That'd be a security nightmare. Can I send you an email which will use your Amazon account to order some stuff for me ;)
You can't run javascript inside emails (and even if you could - email clients should block it) so no LWC runtime... How would it even login to SF to pull data?
You need to learn Visualforce for this email template or send the email straight from apex (write the email's plaintext/html body with apex)