PHPmailer dependency loaded from the wrong location.

Created on 21 October 2024, about 1 month ago

Problem/Motivation

When installing the phpmailer library in the vendor folder (via composer), the phpmailer dependency is included from the wrong location.

Steps to reproduce

Install the module via composer and attempt to send an email using phpmailer.

Proposed resolution

Fix the faulty code.

Remaining tasks

none

User interface changes

none

API changes

none

Data model changes

none

🐛 Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

🇧🇪Belgium Nick Dewitte

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Nick Dewitte
  • 🇮🇳India prashant.c Dharamshala

    Yes, this change will fix the issue ../vendor/phpmailer/phpmailer/src/SMTP.phpbut this path we need to fix like in my case the path is

    require_once 'vendor/phpmailer/phpmailer/src/SMTP.php';
    

    notice the "../" part in the fix.

    Tried sending the email by making this change and it worked.

  • 🇧🇪Belgium Nick Dewitte

    Seems like this was fixed in commit be510aa5a3adaffe462417cdc61975fdb4c299c8, which was included in v4.0.1

Production build 0.71.5 2024