PHP contact-form
by Panadda Manarata
Challenge
Write a contact form using PHP
Connect mail() function
- docker
- composer
- PHP mailer
- Mailtrap
Installation
Composer
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
PHP mailer
To link your smtp:
Open terminal and place command in project file
composer require phpmailer/phpmailer
Mailtrap
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