<p dir="auto">Hi,</p>
<p dir="auto">I've found a small big in the email validation that is causing me some grief.</p>
<p dir="auto">Using a compound email validator, the following email address is considered as valid: <a href="mailto:foo.@domain.com">foo.@domain.com</a></p>
<p dir="auto">However when trying to send an email to this email address using swiftmailer, an exception is thrown with the following message:<br>
Address in mailbox given [<a href="mailto:foo.@domain.com">foo.@domain.com</a>] does not comply with RFC 2822, 3.6.2.<br>
500 Internal Server Error - Swift_RfcComplianceException</p>
<p dir="auto">I would expect the SF2 email validation to match the SwiftMailer email validation so these types of issues do not occur.</p>
<p dir="auto">Thanks</p>
<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes</td>
</tr>
<tr>
<td>Feature request?</td>
<td>no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>v4.0.4 (probably older)</td>
</tr>
</tbody>
</table>
<p dir="auto">I have something along the lines of:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$io = new SymfonyStyle($input, $output);

$io-&gt;comment(
    sprintf(
        'Loading the configuration file &quot;&lt;comment&gt;%s&lt;/comment&gt;&quot;.',
        $configPath
    )
);"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>io</span> = <span class="pl-k">new</span> <span class="pl-v">SymfonyStyle</span>(<span class="pl-s1"><span class="pl-c1">$</span>input</span>, <span class="pl-s1"><span class="pl-c1">$</span>output</span>);

<span class="pl-s1"><span class="pl-c1">$</span>io</span>-&gt;<span class="pl-en">comment</span>(
    sprintf(
        <span class="pl-s">'Loading the configuration file "&lt;comment&gt;%s&lt;/comment&gt;".'</span>,
        <span class="pl-s1"><span class="pl-c1">$</span>configPath</span>
    )
);</pre></div>
<p dir="auto">So you can see the <code class="notranslate">&lt;comment&gt;</code> tag being used. When using <code class="notranslate">comment()</code> or another similar method, the text is eventually wrapped when too long:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" // Loading the configuration file
 // &quot;/very/long/path/to/box.json.dist&lt;/commen
 // t&gt;&quot;."><pre class="notranslate"><code class="notranslate"> // Loading the configuration file
 // "/very/long/path/to/box.json.dist&lt;/commen
 // t&gt;".
</code></pre></div>
<p dir="auto">However you can see above that this breaks the <code class="notranslate">comment</code> tag</p>