magepal / magento2-gmail-smtp-app

Configure Magento 2 to send email using Google App, Gmail, Amazon Simple Email Service (SES), Microsoft Office365 and many other SMTP (Simple Mail Transfer Protocol) servers
https://www.magepal.com
319 stars 147 forks source link

Not result content when send test email !!! #109

Closed goben2489 closed 6 years ago

goben2489 commented 6 years ago

Magento version #:

2.1.11

Edition (EE, CE, OS, etc):

CE

Expected behavior:

Display result content

Actual behavior:

Email sending but not display result content like demo

Steps to reproduce:

h29

Preconditions

PHP 5.6 MySQL 5.6

srenon commented 6 years ago

@goben2489 ... you will need to check your error logs to see what causing the issue

goben2489 commented 6 years ago

i founded in system.log this message: [2018-05-21 14:36:25] main.CRITICAL: Recoverable Error: Argument 1 passed to MagePal\GmailSmtpApp\Helper\Data::setTestMode() must be an instance of MagePal\GmailSmtpApp\Helper\bool, boolean given, called in app/code/MagePal/GmailSmtpApp/Block/Adminhtml/EmailTest.php on line 205 and defined in app/code/MagePal/GmailSmtpApp/Helper/Data.php on line 227 [] []

This funtions in Data.php

public function setTestMode(bool $testMode) { $this->_testMode = $testMode; }

Remove bool defined that ok.