0 votes
by (120 points)
edited by

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
by (70.2k 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 support@rebex.net we can analyze it and tell you more.

by (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.
by (70.2k 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 http://forum.rebex.net/796/converting-msg-to-eml-handles-exchange-addresses
by (120 points)
How can I build standalone .exe file from that code without the .dll files, as it depends on MailMessage?
by (70.2k 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.
by (70.2k 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.

See:
http://blog.risingperfection.com/2013/03/how-to-use-ilmerge-and-how-to-build-portable-applications.html
or
https://stackoverflow.com/questions/14551556/how-to-use-ilmerge-to-merge-dll-into-an-exe-file
...