Skip to main content

autoresponder blanking e-mail address due to foreign characters

Comments

3 comments

  • cPRex Jurassic Moderator

    Hey there!  Can you let me know how I can reproduce this on a cPanel server so I can do some additional testing?  If you can provide click-by-click directions to make this error happen I can take a look!

    0
  • sondroyo

    Hey cPRex here's a php script that will replicate the problem.
    The test recipient account should have an autoresponder enabled.

    <?php

    $target_domain = "example.com";

    // Recipient
    $to = "test@".$target_domain;

    // Subject
    $subject = "Test Email";

    // Message body
    $message = "This is a test email with a custom From name.";

    // MIME-encoded From name with commas and non-roman characters
    $from_string = "=?UTF-8?B?MTIzNDU26aWL6K+V56GE5aSPIFpoYW5nLCBXZWk=?=";
    $from_email = "processing@".$target_domain;
    $from_full = "From: $from_string <".$from_email.">";

    // Headers
    $headers = $from_full."\r\n";
    $headers .= "Content-Type: text/plain; charset=UTF-8\r\n";

    // Send the email
    if (mail($to, $subject, $message, $headers)) {
        echo "Email sent successfully.";
    } else {
        echo "Failed to send email.";
    }
    ?>
    0
  • cPRex Jurassic Moderator

    Excellent - I love when the testing is that easy :)

    I've created case CPANEL-48649 with our developers so they can take a look at this, but I don't have a workaround available at this time.  It seems like they'll need to edit the autoresponder system directly in order to resolve this.

    I have linked this Forums thread to the case so if I hear any updates on my end I'll be sure to post!

    0

Please sign in to leave a comment.