SDKiller / zyx-phpmailer

PHPMailer integration for Yii2 framework
BSD 3-Clause "New" or "Revised" License
2 stars 5 forks source link

PHPMailer not found #13

Closed richardoctoey closed 6 years ago

richardoctoey commented 6 years ago

hi, currently my environment is in windows. the PHPMailer version is 6.0 when class Adapter extends \PHPMailer it returns error, telling that PHPMailer not found.

the PHPMailer itself is already in vendor directory, and I've tried to dump-autoload. If I add use PHPMailer\PHPMailer\PHPMailer and extends it, it's fine.

the getVersion is also fail in windows public function getVersion() { return PHPMailer::VERSION; // before return $this->Version; }

if my code is correct in linux env please update, or I can commit it.

SDKiller commented 6 years ago

It is not currently tested with PHPMailer 6, which introduces many BC breaks.

11 сент. 2017 г. 7:44 ПП пользователь "Richard Octovianus Oey" < notifications@github.com> написал:

hi, currently my environment is in windows. the PHPMailer version is 6.0 when class Adapter extends \PHPMailer it returns error, telling that PHPMailer not found.

the PHPMailer itself is already in vendor directory, and I've tried to dump-autoload. If I add use PHPMailer\PHPMailer\PHPMailer and extends it, it's fine.

the getVersion is also fail in windows public function getVersion() { return PHPMailer::VERSION; // before return $this->Version; }

if my code is correct in linux env please update, or I can commit it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SDKiller/zyx-phpmailer/issues/13, or mute the thread https://github.com/notifications/unsubscribe-auth/ACDSBCPpGNm-NLUqI6-dfUXFK8o9hBAfks5shWODgaJpZM4PTc9O .