Skip to content

Angle brackets for text/plain URL with spaces #535

@SirLouen

Description

@SirLouen

According to RFC2396 Appendix E angle brackets are recommended for text/plain emails to recognize potential spaces in between the URL

In the case of mailpit, spaces are not being recognized and the presence of angle brackets are pretty much ignored

Return-Path: <test@example.com>
Received: from localhost (myserver.test. [172.18.0.3])
        by e151f05e0639 (Mailpit) with SMTP
        for <test@example.com>; Mon, 14 Jul 2025 09:46:09 +0000 (UTC)
Date: Mon, 14 Jul 2025 09:46:09 +0000
To: test@example.com
From: test <test@example.com>
Subject: Subject B
Message-ID: <WIq0SNytCs9xMFSvuTvuF4NJ9HJSp1kZ8Rnpf7A26E@localhost>
X-Mailer: PHPMailer 6.9.3 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8

<https://www.example.com/path/to/resource?param1=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNO PQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions