xEdziu / RPG-Handy-Helper

Tool for your Game Master for your next RPG session!
https://rpg.webace-group.dev
MIT License
2 stars 1 forks source link

Basic email sending #28

Closed xEdziu closed 3 months ago

xEdziu commented 3 months ago

Description

I've set up and completed configuration and mail sending with PHPMailer and the template for account activation mail.

How to test out?

  1. Install required composer dependencies using command composer install in the root of the project.
  2. Modify the $email variable in TestMail.php file to your own email
  3. Make sure you've updated the .env variables
  4. Run the server using php -S 0.0.0.0:8000
  5. Run the TestMail.php file
  6. Check your mail - there should be a new incoming messeage.
  7. The mail should look like this: image
  8. Button should redirect you to: http://localhost:8000/activate/testToken

Yes, it will be 404 page, but that's intended