Ruifeng has uploaded a patch.
Description:
public static string ToEml(this MailMessage mailMessage)
{
......
else
{
var eml = File.ReadAllText(tmpPath);
// File.Delete(eml); // Bug Here~! Wrong path.
File.Delete(tmpPath); // Fixed.
return eml;
}
}
catch (Exception)
{
throw;
}
finally
{
if (watcher != null)
watcher.EnableRaisingEvents = false;
}
}