I was run this code .
It was running successfully..
the attached file was sent to the mail.
but my texbox field ar sent to mail but it will display null value.
Here's a tip for debugging: if you have code which does two things, debug them separately. Otherwise you won't know whether the problem is in Part 1 or in Part 2. Which I assume you don't.
Also you're complaining about a "text box". I don't see anything about a text box in that code. A description of that would be helpful.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.