This sample shows you how to send emails with SMTP on your PHP development.
To do this, we used Swiftmailer as SMTP library. It is a powerful library, up to date and easy to use.
To install this library, you can use Composer.
To install swiftmailer, you just have to enter this command line
composer require swiftmailer/swiftmailer @stable
In the sample attach, we use the minimum parameter to send emails. You can visit the library's website to see how to add images, headers, ...
Moreover, you can use other library like Phpmailer, ...