Anujrathi,
Before you call SmtpMail.Send you need to setup a mail server for the script to access.
SmtpMail.SmtpServer = mail.domain.com;
As far as needing a username and password I THINK that as long as you send mail within the same domain you dont need to provide credentials. For example, if the recipient is
[email protected] and i have the sender as
[email protected] this should freely pass through your mail server. (I do it with a few of my Intranet applications and our SMTP server requires authenticaion and I never supply it any credentials.)
HtH
"The one language all programmers understand is profanity."