- Posts: 44
Question
email message
- tthdoc
-
Topic Author
- Offline
- New Member
-
Less
More
2 years 3 months ago #1
by tthdoc
email message was created by tthdoc
It has been a while since I modified things, so this may be a dumb question, but I looked everywhere I could think to look to see where you can modify the email someone gets after the account is approved. Apparently now it says:
The administrator at the webtrees site markowfamily.com/familytree/ has approved your application for an account. You may now sign in by accessing the following link: markowfamily.com/familytree/ .
How can I change this text? And the same question for all the email setting, like the subject, etc?
Thanks,
Doc
The administrator at the webtrees site markowfamily.com/familytree/ has approved your application for an account. You may now sign in by accessing the following link: markowfamily.com/familytree/ .
How can I change this text? And the same question for all the email setting, like the subject, etc?
Thanks,
Doc
Please Log in or Create an account to join the conversation.
- fisharebest
-
- Offline
- Administrator
-
2 years 3 months ago #2
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic email message
> How can I change this text?
emails, like the pages, are created from HTML templates.
You can find them in /resources/views/emails
There's an example module that shows you how to replace these templates with your own versions.
> And the same question for all the email setting, like the subject, etc?
Subject is a little harder.
You'd need to find the "RequestHander" that generates it.
For example, app/Http/RequestHanders/RegisterAction.php
You'd need to extend this class with your own - which sets a different subject line.
You'd then need to register your version of the code, and webtrees will use it instead of the default version.
Depending on the change you want, it might be simpler just to change the translation text to whatever you want in your message.
> And the same question for all the email setting, like the subject, etc?
I can't answer for "etc.". You'd need to ask a more specific question.
emails, like the pages, are created from HTML templates.
You can find them in /resources/views/emails
There's an example module that shows you how to replace these templates with your own versions.
> And the same question for all the email setting, like the subject, etc?
Subject is a little harder.
You'd need to find the "RequestHander" that generates it.
For example, app/Http/RequestHanders/RegisterAction.php
You'd need to extend this class with your own - which sets a different subject line.
You'd then need to register your version of the code, and webtrees will use it instead of the default version.
Depending on the change you want, it might be simpler just to change the translation text to whatever you want in your message.
> And the same question for all the email setting, like the subject, etc?
I can't answer for "etc.". You'd need to ask a more specific question.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- tthdoc
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 44
2 years 3 months ago - 2 years 3 months ago #3
by tthdoc
Replied by tthdoc on topic email message
Thanks for the quick response. I looked and cannot find any folder "resources", and under the app folder there is no "Http" folder. I tried searching for RequestHander and RequestHandler (might have been a typo in your message) but cannot find either. Even did searches for "views" and "emails" and nothing found (at least in the family tree folder). Is it possible these folders are not in ver 1.7 and are called something else?
And you mentioned an example module but not where to find it or what it is called.
Thanks again..
And you mentioned an example module but not where to find it or what it is called.
Thanks again..
Last edit: 2 years 3 months ago by tthdoc.
Please Log in or Create an account to join the conversation.
- fisharebest
-
- Offline
- Administrator
-
2 years 3 months ago #4
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic email message
> Is it possible these folders are not in ver 1.7
Sorry - I didn't spot that you are still on version 1.
I'm afraid I haven't looked at that code for very many years. I doubt there will be a simple fix.
Sorry - I didn't spot that you are still on version 1.
I'm afraid I haven't looked at that code for very many years. I doubt there will be a simple fix.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.