Deprecated function MimeTypeGuesser::guess() on Drupal 10.x version

Created on 19 July 2023, over 1 year ago
Updated 9 August 2024, 4 months ago

Problem/Motivation

Getting the below error while attaching the document in the mail.

Error: Call to undefined method Drupal\Core\ProxyClass\File\MimeType\MimeTypeGuesser::guess() in Drupal\smtp\Plugin\Mail\SMTPMailSystem->mail() (line 666 of /var/www/html/web/modules/contrib/smtp/src/Plugin/Mail/SMTPMailSystem.php).

Steps to reproduce

  1. Install SMTP module as normal
  2. Send mail with attachment
  3. Access the error log

Proposed resolution

Change the MimeTypeGuesser::guess() to MimeTypeGuesser::guessMimeType()

Remaining tasks

Nil

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.2

Component

Code

Created by

🇮🇳India arunkumark Coimbatore

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024