src/Backend/Modules/Commerce/Domain/Order/Mailer/Message.php
/**
     * Attach multiple attachments to this message.
     */
Attach multiple attachments to this message.
Attach multiple attachments to this message .
public function addAttachments(array $attachments): Message
    {
        if (!empty($attachments)) {
            foreach ($attachments as $attachment) {
                if (is_file($attachment)) {
                    $this->attach(Swift_Attachment::fromPath($attachment));
                }
            }
        }
        return $this;
    }
public function addAttachments ( array $ attachments ) : Message { if ( ! empty ( $ attachments ) ) { foreach ( $ attachments as $ attachment ) { if ( is_file ( $ attachment ) ) { $ this -> attach ( Swift_Attachment :: fromPath ( $ attachment ) ) ; } } } return $ this ; }
Attach multiple attachments to this message.
Attach multiple attachments to this message .
// add attachments one by one // only add existing files