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

"Sent Test Email" 404s #136

Closed erfanimani closed 5 years ago

erfanimani commented 5 years ago

Magento version #:

Magento 2.3, PHP 7.2

Edition (EE, CE, OS, etc):

CE

Steps to reproduce:

Expected behavior:

Actual behavior:

Preconditions

Magento 2.3.0, PHP 7.2.15

Normal emails work fine, however.

I don't see any adminhtml controllers in the module so maybe this is a known bug?

srenon commented 5 years ago

I'm not aware of any issue with PHP 7.2 and Magento 2.3.

Admin controller - https://github.com/magepal/magento2-gmail-smtp-app/blob/master/Controller/Adminhtml/Test/Index.php

Admin layout xml - https://github.com/magepal/magento2-gmail-smtp-app/blob/master/view/adminhtml/layout/magepalsmtp_test_index.xml

erfanimani commented 5 years ago

Thanks for the fast response, sorry — it must be my bad then. I will investigate (in my haste I thought it was a unit test :')) and get back to you..

erfanimani commented 5 years ago

Ah, so I think I figured out the issue — it was working fine on my local, but not when I deployed to an environment. I realised the Test directory in vendor/magepal/magento2-gmailsmtpapp/Controller/Adminhtml/ wasn't copied over upon deployment.

I'm using @jalogut's Magento 2 Deployer Plus for deployments and it looks like directories called "Test" are excluded: https://github.com/jalogut/magento2-deployer-plus/blob/master/config/artifact.excludes

I think that behaviour is correct — in Magento 2 you can have Test directory that houses your PHP unit tests which should not be deployed.

I think my opinion is to use a different directory name, but up to your discretion :)

srenon commented 5 years ago

I will rename that file in a future release

erfanimani commented 5 years ago

Thanks @srenon, much appreciated.

srenon commented 5 years ago

@erfanimani ... fixed in 2.6.2