0 votes
by (120 points)
edited

Good morning,

we developed a solution in C# with Rebex libraries. The Job is:


  • read the path of a defined file, f.e. "c:\test\1a2b3c4d5e6f\"
  • read the filename, f.e. "1a2b3c4d5e6f.docx"
  • generate an email with subject 1a2b3c4d5e6f.docx and a body text with "c:\test\1a2b3c4d5e6f\", "1a2b3c4d5e6f.docx", "c:\test\1a2b3c4d5e6f\1a2b3c4d5e6f.docx" and a link "Open document" with the path and filename in the link.
  • send email to some email-addresses

So far so good. Our problem is that all variables and the variables values are OK, BUT when the email arrives we get the following result in subject and body:


  • subject:
  • ~$2b3c4d5e6f.docx
  • body:
  • path: c:\test\1a2b3c4d5e6f\
  • filename: ~$2b3c4d5e6f.docx

Does someone have an idea what could be the reason for that? After four weeks searching for the reasons we are desperated. Hope someone could help. Thanks for each answer.

Applies to: Rebex Secure Mail

1 Answer

0 votes
by (134k points)
edited

Hello,

Please try this first: Instead of sending the email, try saving into into a .eml file using MailMessage object's Save method. Then, open the file using Outlook or another email client application (such as Windows Live Mail, Mozilla Thunderbird, etc.).

Does that email look OK, or do you get the same result as if the email was sent?

...