Exception when attaching a non-existing file

Created on 4 January 2024, over 1 year ago
Updated 22 January 2024, over 1 year ago

Problem/Motivation

I'm getting the following error:

The body of "Symfony\Component\Mime\Part\TextPart" must be a string, a resource, or an instance of "Symfony\Component\Mime\Part\File" (got "bool").

It looks like this happens when trying to attach a non-existing file to a message.

Steps to reproduce

Send a mail that has a $message['params']['files'] entry with an uri pointing to a non-existing file.

Proposed resolution

Check that the file exists before trying to attach it.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡¬Bulgaria pfrenssen Sofia

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