Board index » delphi » indy mail problem

indy mail problem

Hello!

I`m using Delphi 6 prof and Indy 8.

I wrote an e-mail forward programm,
but when the "from name" contains special german characters(?, ?, , ?)
i always get an exception like: "illegal argument" (or something like
that!),
because then the
idmessage.from.name property is empty
and the idmessage.from.address property accords the name of the sender
containing some special characters!

i`m using the following code:

idmessage1.Clear;
idmessage1.NoDecode := true;
idpop31.Retrieve(MAILINDEX, idmessage1);
idmessage1.Recipients.EMailAddresses := 'NEWMAILADDRESS';
idsmtp1.send(idmessage1);

How is it possible to forward mail(using indy components), when the
sender/from("name of the person who send the mail") address contains
these special german characters?

i hope my english is understandable :-)

Bora

 

Re:indy mail problem


I believe that you'll need to encode the subject characters using some type
of base64 encoder.

Lance

--
Download IP*Works! Internet Programmers Toolkit from
http://www.nsoftware.com.
Has over 30 components including SSL, XMLp, SOAP, HTTP, FTP, SMTP, POP,
IMAP, MIME, LDAP, NNTP, Telnet.  For PocketPC, ASP, VB, C++, Java and more!

Quote
"Bora Yalkinoglu" <bor...@web.de> wrote in message

news:3c09161b$1_1@dnews...
Quote
> Hello!

> I`m using Delphi 6 prof and Indy 8.

> I wrote an e-mail forward programm,
> but when the "from name" contains special german characters(?, ?, , ?)
> i always get an exception like: "illegal argument" (or something like
> that!),
> because then the
> idmessage.from.name property is empty
> and the idmessage.from.address property accords the name of the sender
> containing some special characters!

> i`m using the following code:

> idmessage1.Clear;
> idmessage1.NoDecode := true;
> idpop31.Retrieve(MAILINDEX, idmessage1);
> idmessage1.Recipients.EMailAddresses := 'NEWMAILADDRESS';
> idsmtp1.send(idmessage1);

> How is it possible to forward mail(using indy components), when the
> sender/from("name of the person who send the mail") address contains
> these special german characters?

> i hope my english is understandable :-)

> Bora

Other Threads