cesurapp / pd-user

Simple user management system for Symfony 5.
MIT License
24 stars 5 forks source link

Template for emailing #10

Open xorgxx opened 4 years ago

xorgxx commented 4 years ago

Hi i gest it's me how deed not setup well, but i have probleme with email template.

i have field all template and i still receive email empty?

all my template are in project templates/member/Auth and i have setup in user.yaml template_path: 'member/Auth

??? thank for helping

n-tsvetkov-krez commented 4 years ago

I think the author has to change row 356 of SecurityController.php to honor config variable template_path

cesurapp commented 4 years ago

Copy the resources/views directory to your own resources directory. Then enter the new template path with the template_path property. Here I would fix an issue that prevents using this feature.

https://github.com/appaydin/pd-user/commit/3e55ff896d78b7a157c51a3f081f94cb0dca592f

xorgxx commented 4 years ago

thank, will try tomorrow

xorgxx commented 4 years ago

since to be functional.

i have one request to try to be move "urban" can you put the name and last name in :

                // Send Confirmation Email
                $emailBody = [
                    'confirmationUrl' => $this->generateUrl('security_register_confirm',
                        ['token' => $user->getConfirmationToken()],
                        UrlGeneratorInterface::ABSOLUTE_URL),
                ];
                $this->sendEmail($user, $mailer, 'Account Confirmation', $emailBody, 'register');
            } elseif ($this->getParameter('welcome_email')) {
                // Send Welcome
                $this->sendEmail($user, $mailer, 'Registration Complete', 'Welcome', 'welcome');
            }

maybe in all sending email to the client.

Thank

xorgxx commented 4 years ago

+++ just see now - subject of email as to be possible to translate, there no possibility to do this ?

xorgxx commented 4 years ago

are to put logo inside ?

cesurapp commented 4 years ago

If you can develop for logo and translation. I can confirm.

Or you can overwrite and use this function.

xorgxx commented 4 years ago

sorry, i deed not get you?

xorgxx commented 4 years ago

so i deed all! put in pull request. and delete ? what was the problem ??? second time you deed delete.