ALINAWAZ
1 month ago
544
17
Laravel

PHPMailer used in Laravel 6.0

Posted 1 month ago by ALINAWAZ

I am using laravel 6.0 and try to use the PHPMailer in our project

A) Firstly I am install the command in our project. (composer require phpmailer/phpmailer) B) Second include code in composer.json ("phpmailer/phpmailer": "dev-master",) c) Then make php file as name. (App/custom/SmtpEmail.php) D) Then I am getting following three Error I) Undefined type 'PHPMailer'. II) Undefined type 'App\Custom\phpmailerException'. III) Undefined type 'vendor\phpmailer\phpmailer\src\Exception'.

F) This is my code of PHPMailer

Please sign in or create an account to participate in this conversation.