Closed (fixed)
Project:
SMTP Authentication Support
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jan 2017 at 14:35 UTC
Updated:
3 Jun 2019 at 13:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
estoyausenteChanged all !var placeholders and replaced with @var in t functions.
Comment #3
cppg commentedIt's not ok, I'm afraid. @!smail is not a correct syntax, it should be @smail.
First 4 lines are not ok, last 2 are ok.
Comment #4
estoyausenteYo're right!. I will be do asap.
Comment #5
pawel_r commentedThx #2.
After applying this patch e-mails from Contact Forms are being send properly.
Drupal 8.2
Comment #6
mgoncalves commentedComment #7
mgoncalves commentedThe issue reported was fixed, but I have a question about the t() function.
In this case, should I use the $this->t() or keep only t() ?
Comment #8
mgoncalves commentedComment #9
gg24 commentedHi @mgoncalves,
It should be this->t() as t() has been deprecated and will be removed in Drupal 9.
Thanks!
Comment #10
gg24 commentedComment #11
mgoncalves commentedComment #12
estoyausente@mgoncalves you cannot use $this->t because the code inside SMTP class is an external library, not a real Drupal class. Set inside this file a Drupal t function is a dirty way of resolve a problem that have to be resolve including the original library using composer or something similar.
@see https://www.drupal.org/node/2711559
Comment #13
mgoncalves commentedHello @estoyausente,
I thought about that, Drupal 8 is keeping some hooks, and we cannot use $this->t inside hooks as well, do you ?
At this bug, the only thing I have seen is about the change from ! to @.
Do you have any point to add or the last patch I sent is satisfacting ?
Comment #14
estoyausenteThe last past seems perfect but (viewing the code) but I haven't enough time to test in in my local environment. For this reason I don't change the issue status to RTBC :-)
Comment #15
estoyausenteComment #16
gg24 commentedHi @mgoncalves,
Your patch works as intended.
Thanks!
Comment #17
gg24 commentedComment #18
mgoncalves commentedComment #19
arnoldbird commentedLooks like this patch has not been applied to the dev branch yet.
Comment #20
arnoldbird commentedComment #21
arnoldbird commentedThe patch in #7 is working for me. I no longer get the relevant error when I apply the patch to the latest dev code.
I can't send emails yet, but I think that's due to an unrelated issue.
Comment #22
wundo commentedPatch needs a re-roll, I'm going to manually fix it and commit.
Comment #23
wundo commentedComment #24
wundo commentedHere it goes!
Comment #26
wundo commentedAs everything passed, I think this new patch is good to go :)
Comment #28
wundo commentedComment #30
pianomansam commentedCan we can a full release with this fix? It's been 12 months since it was committed to dev.
Comment #31
lukus+1 for release