views:

18

answers:

0

What is the correct format of "From:" header when From Name contains national characters and dot (.) character?

We generate (using C# Chilkat lib) this:

From: =?utf-8?Q?Micha=C5=82_from_domain.com?= <[email protected]>

(where From Name = Michał from domain.com)

This works OK in most cases. However, we encountered an email provider which marks this header as invalid and uses Return-Path header instead (which is machine-readable only).

The error is:

Illegal-Object: Syntax error in From: address found on ps11.m5r2.onet: 
From: =?utf-8?Q?Micha=C5=82_from_domain.com?=<[email protected]>
^-missing end of mailbox

The provider insists the the problem is the lack of space between name and email. This is not the case on our end (see previous code example).