• Naresh

    (@nareshrathore)


    Incorrect email headers being set while using Bcc. For example, If i send a mail using below code snippet.

    $mail = new \Nette\Mail\Message;
    $mail->setFrom(no-reply@nareshpatel.co.in’, ‘NARESH PATEL | programmer and web designer’)->setSubject($subject);
    $mail->addReplyTo(‘no-reply@nareshpatel.co.in’, ‘NARESH PATEL | programmer and web designer’);
    $mail->addBcc(‘user1@domain.com’);
    $mail->addBcc(‘user2@domain.com’);
    $mail->addBcc(‘user3@domain.com’);
    $mail->addBcc(‘user4@domain.com’);

    Original mail appears like this and Reply-To has some unwanted recipients.

    From: NARESH PATEL | programmer and web designer
    <no-reply@nareshpatel.co.in>
    Reply-To: NARESH PATEL | programmer and web designer
    <no-reply@nareshpatel.co.in>
    user3@domain.com,user4@domain.com

    Also, email is not being delivered to all four recipients.

    https://wordpress.org/plugins/simple-subscribe/

The topic ‘Incorrect email headers’ is closed to new replies.