I am creating a website using asp.net and c#
I need to access all files one by one in a directory. So I wrote the following code.

    string[] ssImgs = Directory.GetFiles("images/movies");
    Label1.Text = ssImgs[0];
    Label2.Text = ssImgs[1];


But it gives an error. What is the correct way to do this? Thanks in advance.


Question: how to send a mail by telnetting through some SMTP server?
Answer: you can easily make you own SMTP server on almost any nix system, and it should work provided you don't have any firewall rules in the way