Hi,

I hve some problem with inline attachment file.i already done with attached file,but when receiver receive the email,it not same like attached.for example like below.

in the attach file:
age total
12 - 15 5
16 - 20 8
21 - 25 10

when receive it becomes like that:

age total
12 - 15 5
16 - 20 8
21 - 25 10

which is the data is not organized like attach..how to write code for this problem?thanks in advance.

Use String.Format() method.

Example

System.IO.File.AppendAllText("p.txt", string.Format("{0,-10}{1,-20}\r\n", 10, 20));
System.IO.File.AppendAllText("p.txt", string.Format("{0,-10}{1,-20}\r\n", 20, 2));
System.IO.File.AppendAllText("p.txt", string.Format("{0,-10}{1,-20}\r\n", 4, 10));