by Panadda Manarata
Write a contact form using PHP
- docker
- composer
- PHP mailer
- Mailtrap
Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.
composer require phpmailer/phpmailer
To link your smtp:
Open terminal and place command in project file
composer require phpmailer/phpmailer
Mailtrap is a dummy SMTP server for development teams to test, view, share transactional and other emails sent from DEVELOPMENT and STAGING environments, without spamming real customers