I have modified ur code slightly...can you check thiscode and tell me if it works for you..By the way is ur mail sent from a unix box.....usingsomething like sendmail...