Support from Acquia helps fund testing for Drupal Acquia logo

Comments

agialab created an issue. See original summary.

agialab’s picture

I have created a simple patch for that - it sets the default system as 'SMTPMailSystem' when the module is enabled and 'php_mail' when it is disabled.

agialab’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 2: smtp-auth-support-2651976-1-8.x-1.x.patch, failed testing.

agialab’s picture

agialab’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 5: smtp-auth-support-2651976-2-8.x-1.x.patch, failed testing.

ptmkenny’s picture

I can confirm this bug. I enabled the module, configured my Mandrill SMTP info, turned SMTP "on" in the Install Options, and then sent a test mail-- which was sent from the server rather than the SMTP module.

estoyausente’s picture

I had the same issue. I don't know why I couldn't apply the patch in dev branch, git throw me an error.

I just rebuild the patch uploaded in #5 and now it work correctly and can be apply.

please review it.

ptmkenny’s picture

Status: Needs work » Needs review
estoyausente’s picture

Add related issue. This patch seems to fix this other issue too.

estoyausente’s picture

ptmkenny’s picture

Status: Needs review » Reviewed & tested by the community

I can confirm that this module correctly sets SMTP to the default when it is turned on and restores the default to php_mail when it is turned off.

Arlina’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
2.19 KB

Attached patch builds on the patch from #9 by estoyausente, but instead of restoring to the default "php_mail", it saves it to the config "prev_mail_system", as uninstall routine tried to.
Note: It requires the patch in https://www.drupal.org/node/2653338#comment-10802106 to fix the uninstall issues before testing this patch.

Status: Needs review » Needs work

The last submitted patch, 14: smtp-enabling_module_does-2651976-14.patch, failed testing.

estoyausente’s picture

@Arlina Maybe we can merge both patchs in order to pass the test and build a commitable patch.

Arlina’s picture

Status: Needs work » Needs review
FileSize
2.77 KB

Good idea @estoyausente. Attached patch merges #14 and https://www.drupal.org/node/2653338#comment-10802106 :)

estoyausente’s picture

Status: Needs review » Needs work

It seems that not working correctly:

Trying to send testmail using GMAIL as smtp server:

Fatal error: Cannot use object of type Drupal\Core\Config\Config as array in /home/rmx9j/www/sites/default/modules/smtp/src/Form/SMTPConfigForm.php on line 221

Arlina’s picture

Status: Needs work » Needs review
FileSize
3.19 KB

Just ran into that as well. Attached is updated version of patch that fixes that, I was able to successfully configure an smtp inbox and send mail though it :)

estoyausente’s picture

Status: Needs review » Reviewed & tested by the community

The patch is ok although I can't send the mail without apply this another patch: https://www.drupal.org/node/2611210

I hope that maintainer commit asap the 2-3 patch necessaries to use the module. Now it's imposible test patchs in simplytest.me because the module haven't all ok in the dev branch.

mikeegoulding’s picture

This patch worked for me as well. Same result as #20. I needed the other patch for mail to actually send.

  • wundo committed 23e78da on 8.x-1.x authored by Arlina
    Issue #2651976 by Arlina, agialab, estoyausente, ptmkenny, wundo,...
wundo’s picture

Status: Reviewed & tested by the community » Fixed
wundo’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.