Implement Image Embed Attachments (src="cid:xxx") also in v8

Created on 1 October 2021, over 3 years ago
Updated 28 August 2024, 4 months ago

Problem/Motivation

I am developing a form and I would need to embed an image in the body of the email (cid).
I saw that in version 7 an issue with the same problem was opened and that this functionality was introduced.

Proposed resolution

I propose a small patch that adds this functionality: to embed an image just attach it by setting the 'cid' field.
eg.

'attachments' = [
  [
    'cid' => 'logo',
    'filepath' => '/somwhere/logo.png',
    'filemime' => 'image/png',
    'filename' => 'logo.png',
  ],
  [
    'filepath' => '/somwhere/otherimage.png',
    'filemime' => 'image/png',
    'filename' => 'otherimage.png',
  ]
];
Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇮🇹Italy krash Ragusa

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024