Sending an email from Delphi using Indy changes Danish chars

529 views Asked by At

I have made a form that I use to send a mail using Indy. The form can be used to attach files as well. All this is working very fine when I use the sample in the link below and when I use it in a utility I have made for sending invoices made as PDF files from an Excel project.

The strange things begin to happen when I put it to use in a large application I have that uses UniDAC and DevExpress - then all of a sudden my Danish chars in emailbody is gone. The are still present in the subject. I haven't made any changes in the code and the form is executed in the same way as in the sample.

Any ideas as to what I should be looking for in order to get this working?

The sample can be downloaded here: www.hugopedersen.dk/_guest/sendmail.zip (some comments and text might be in Danish, but that should have no influence in how the code works)

0

There are 0 answers