Skip to Content Skip to Menu

[SOLVED] Custom email template for password reset

7 years 10 months ago - 7 years 10 months ago #289635 by playshakespeare
[SOLVED] Custom email template for password reset was created by playshakespeare
I need to customize the template for password reset and username reminder. I see that those are hardcoded in code so I'd like to know the best way to customize those as HTML emails like the registration email. Should I customize the comprofiler.php file or will it work if I customize the language file?

PlayShakespeare.com
www.playshakespeare.com
The Ultimate Free Shakespeare Resource
Last edit: 7 years 10 months ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • OFFLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
7 years 10 months ago #289684 by krileon
Replied by krileon on topic Custom email template for password reset
The Pending and Welcome emails are language strings. You can create your template as a language override. See the below regarding language override usage. Alternatively just put your HTML in the parameters within CB > Configuration > Registration.

www.joomlapolis.com/blog/kyle/18712-language-key-and-text-finder


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

7 years 10 months ago #289689 by playshakespeare
Replied by playshakespeare on topic Custom email template for password reset
Hi Kyle,

Thanks for the response. However, I want to customize the password reset and recover username emails. These are not in the CB configuration and are handled differently than the pending and welcome emails.

PlayShakespeare.com
www.playshakespeare.com
The Ultimate Free Shakespeare Resource

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • OFFLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
7 years 10 months ago #289692 by krileon
Replied by krileon on topic Custom email template for password reset
The forgot login emails are also language strings and the same language override usage also applies to them. Specifically their language keys are as follows.

UE_USERNAMEREMINDER_SUB
UE_USERNAMEREMINDER_MSG

UE_NEWPASS_SUB
UE_NEWPASS_MSG


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

7 years 10 months ago #289693 by playshakespeare
Replied by playshakespeare on topic Custom email template for password reset
Great! Do I need to do anything special to send the email as HTML instead of plain text? These two emails appear to be plain text by default.

Thanks!

PlayShakespeare.com
www.playshakespeare.com
The Ultimate Free Shakespeare Resource

Please Log in or Create an account to join the conversation.

7 years 10 months ago #289719 by playshakespeare
Replied by playshakespeare on topic Custom email template for password reset
Actually, I figured it out. The overrides are done in the CB language plugin, not in the Joomla Language Manager. HTML is supported file in those override fields.

Thanks, Kyle!

PlayShakespeare.com
www.playshakespeare.com
The Ultimate Free Shakespeare Resource
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum