Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in Drupal\smtp\PHPMailer\PHPMailer->EncodeQ() (line 1762 of modules/contrib/smtp/src/PHPMailer/PHPMailer.php).

Settings:

smtp_on: true
smtp_host: smtp.xyz.de
smtp_hostbackup: ''
smtp_port: '25'
smtp_protocol: standard
smtp_username: foobar@domain.de
smtp_password: 1234567890
smtp_from: no-reply@domain.de
smtp_fromname: 'My Name'
smtp_allowhtml: '1'
smtp_test_address: ''
smtp_debugging: false
prev_mail_system: php_mail
_core:
  default_config_hash: xyz
langcode: de
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

abogomolov created an issue. See original summary.

pifagor’s picture

pifagor’s picture

Status: Active » Needs review
pifagor’s picture

Issue tags: +Needs tests
abogomolov’s picture

Status: Needs review » Needs work
FileSize
20.73 KB

I have some PHP code in the subject now. See screen.

pifagor’s picture

write more as to reproduce this bug?

pifagor’s picture

Status: Needs work » Needs review
pifagor’s picture

Test @abogomolov please. Everything should work

asrob’s picture

Version: 8.x-1.0-alpha0 » 8.x-1.x-dev
Status: Needs review » Reviewed & tested by the community

I've successfully applied this patch and works fine. Change its status to RTBC.

DamienMcKenna’s picture

Does it still need tests?

pifagor’s picture

Issue tags: -Needs tests +requires transfer

everything works, transport needs

abogomolov’s picture

I can only agree with that. Patch #8 works.
@pifagor Thank you!

Eric_A’s picture

I've removed the "requires transfer" tag from both this issue and #2708101: Default value for link text is not saved.
@pifagor, please see the Issue tags description text. We're not supposed to create new tags.

Eric_A’s picture

Issue tags: -requires transfer
Eric_A’s picture

Is this issue hacking external library code that is shipped with this Drupal project? What is the current state of the shipped build? Is it already forked in this project?

dpovshed’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
1.49 KB
478 bytes

The patch from #8 looks fine. It is fixed the problem, but leaved 'todo' comment.

My patch fixes this.

@Eric_A, the answer is yes, currently module ships own version 5.1 of external library, and patches hacking it.

More modern approach is already scheduled as a task in this issue [2711559].

I believe current fix is good to be committed before PHPMailer is not used via Composer.

pifagor’s picture

@dpovshed, thank you for your feedback. But your patch, a copy of the patch #2, which is not working. A patch #8 working and 'todo' comment is present.

dpovshed’s picture

@pifagor, thanks for the feedback! you're right, I took the wrong patch!

Maybe you want to extend your #8 by yourself? Only one additional line shoudl be deleted.

dpovshed’s picture

Status: Needs review » Needs work
pifagor’s picture

Status: Needs work » Needs review
FileSize
1.36 KB

@dpovshed Comments into account and corrected patch

dpovshed’s picture

Status: Needs review » Reviewed & tested by the community

Patch from #20 looks perfect, I think it is ready to commit.

wundo’s picture

  • wundo committed fcbc29e on 8.x-1.x authored by pifagor
    Issue #2729143 by pifagor, dpovshed, abogomolov, Eric_A: Deprecated /e...
wundo’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

pifagor’s picture