Comma in recipient name

Giganews Newsgroups
Subject: Comma in recipient name
Posted by:  Marcio Ehrlich (mehrlichatopenlinkdotcomdotbr)
Date: Sun, 20 Jun 2004

I have noticed that using semi-collon as a separator at recipients lists
raises an error. So I've been using only commas.
This results in a problem when a recipient has a comma in its name, which is
very common in business.
I've tried to enclose the string with double quotes, like this:
    IdMsgSend.Recipients.EMailAddresses := '"Johnny, FCB"
<in…@johnnyfcb.com>';
Nevertheless, Indy is spliting the string and complainting that found 'no
recipient' for Johnny.
How to overcome this?
Thanks,
Marcio

Replies