From 6bf4388496f8aa59a6ab3b3fdb34ac4a5752530e Mon Sep 17 00:00:00 2001 From: mirekmarek Date: Wed, 18 Sep 2024 07:47:23 +0200 Subject: [PATCH] Jet Core - Mailing ------------ * Jet\Mailing_Email -> parseImages(): HTML images are now embedded in the HTML and not attached to the email as a special attachment. * Jet\Mailing_Email: new method addAttachmentsData( string $file_name, string $file_mime_type, string $file_data ) : void * Jet\Mailing_Email: new method addImageData( string $cid, string $file_name, string $file_mime_type, string $file_data ) : void * New class internal Mailing_Email_File representing e-mail attachment --- library/Jet/Mailing/Backend/Default.php | 1 + library/Jet/Mailing/Email.php | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/library/Jet/Mailing/Backend/Default.php b/library/Jet/Mailing/Backend/Default.php index 2e56b35b6..4977b6a0d 100644 --- a/library/Jet/Mailing/Backend/Default.php +++ b/library/Jet/Mailing/Backend/Default.php @@ -33,6 +33,7 @@ public function sendEmail( Mailing_Email $email ): bool $to = implode(', ', $to); } + return mail( $to, $subject, $message, $header ); } diff --git a/library/Jet/Mailing/Email.php b/library/Jet/Mailing/Email.php index cc22032a2..a90a5fae0 100644 --- a/library/Jet/Mailing/Email.php +++ b/library/Jet/Mailing/Email.php @@ -151,9 +151,6 @@ public function setToHiddenCopy( array|string $to_hidden_copy ): void $this->to_hidden_copy = $to_hidden_copy; } - - - /** * @return string */