Skip to content

[BUG] BCC via email queue does send as to #4932

@leissbua

Description

@leissbua

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

send() method in class Mage_Core_Model_Email_Queue does

           foreach ($message->getRecipients() as $recipient) {
                    [$email, $name, $type] = $recipient;
                    match ($type) {
                        self::EMAIL_TYPE_BCC => $mailer->addBcc($email),
                        default => $mailer->addTo($email, $this->getBase64EncodedString($name)),
                    };
                }

$type comes in as string, but match expects it to be int, all bcc are sent as default (addTo)

Expected Behavior

Should send BCC emails

Steps To Reproduce

Send a bcc mail via email queue (type 2 BCC)

Environment

- OpenMage: 20.15.0
- php: all versions

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions