Skip to content

strange numbers appearing before the mail template / body #5495

@MisterCoder74

Description

@MisterCoder74

From manual page: https://php.net/function.mail


When i send emails from my apps via mail() and they contain styled elements, i always get some strange numbers before the injected body.
Mostly it is "-8"
like:

-8
Nuovo Commento
È stato aggiunto un nuovo commento al ticket #6.

this happens for emails sent using:

    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-Type: text/html; charset=UTF-8\r\n";

If i change to any other charset i het -1 or 0 instead of -8 but the body email is the corrupted (typically, a styled email body shows all the HTML code instead of the styled result)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions