Sending Emails with Custom Email Template

Hi,It’s the language file. I provided it for both English and Persian. I placed them inside the language folder.I tested the code in another custom file with header/footer and it works fine.

I used the file structure in my custom file (without header/footer), as suggested by “mobhar” in the following post.
https://discourse.hkvstore.com/t/how-to-load-data-from-database-into-custom-files-v2024/8911/1 idea?