email template

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
crash
User
Posts: 190

email template

Post by crash »

In v2023 I was able to customize the HTML for registration, password reset etc... to show the recipient name.
Now in new version (v2024) the code is different, and uses this ViewBag method.

Eg:
I'm trying to get the First name to be in the email, some other tags also...

<p>firstname: @ViewBag.firstname</p>

Recipient gets the mail but no name can anyone help with this code.
Thanks


MichaelG
User
Posts: 1191

Post by MichaelG »

You should be able to add your own tag (e.g. {firstname}) in the email content and replace it in the Email_Sending server event.


crash
User
Posts: 190

Post by crash »

I've managed to edit the register email with the info I need in the welcome email.
I want to have multiple register email templates, as each project has it's it's own template, but I cannot find this in the ASPNM24 templates, it's ownly in the main folder.
In asppn23 the various HTML's were in the template

Where can I save the email template per project ?

Thanks


MichaelG
User
Posts: 1191

Post by MichaelG »

You can save your language specific email templates in Server Events -> Language-Specific -> Templates.


Post Reply