For this portfolio, I used these technologies:
To set-up and secure my VPS, I used: swapfile, ionos-firewall, ufw, rkhunter, apache2, certbot...
I used smtp.js and Email API from Elastic Email to make it, I also encrypted so that my SMTP creditentials are not visible by anyone looking at my code.