The from address is missing in eml file

0 votes
asked Jul 21 by sanky (120 points)
edited Jul 21 by sanky

When I convert msg file to eml file using MailConverter, the from address is missing in eml file. How can I fix it? Is there any settings in MailConverter.exe.config file?

Applies to: Rebex Secure Mail

1 Answer

0 votes
answered Jul 21 by Lukas Matyska (39,900 points)

This can be caused when the original MSG doesn't contain SMTP type address but Exchange type address (Active directory address format).

If you send the MSG file to we can analyze it and tell you more.

commented Jul 22 by sanky (120 points)
Yes. It doesn't contain SMTP address. But atleast It should display the name in from field like 'From: "Foo Bar"' instead of removing entire from field.
commented Jul 24 by Lukas Matyska (39,900 points)
The API doesn't work like this. If there is no valid SMTP address the field is not filled (address and display name goes together).

If you want to read values of original address fields, see my other answer at
commented Jul 24 by sanky (120 points)
How can I build standalone .exe file from that code without the .dll files, as it depends on MailMessage?
commented Jul 24 by Lukas Matyska (39,900 points)
Without .dll files? We are selling .NET components (basically the .dll files) for software developers. You can use code in MailConverter sample and modify it as you like.  MS Visual Studio project to modify it is created during installation process.
commented Jul 24 by Lukas Matyska (39,900 points)
If you want to create one .exe file for your whole application you can merge required .dll files into the .exe file using ILMerge.