hi all....
I'm trying mailing concept. After entering FROM address, TO address ,subject and body of the message and while clicking the send button am getting
Mailbox unavailable. The server response was: 5.7.1 Unable to relay for "as@a.com" what wrong i would have made?
Plz guide me

hi all....
I'm trying mailing concept. After entering FROM address, TO address ,subject and body of the message and while clicking the send button am getting
Mailbox unavailable. The server response was: 5.7.1 Unable to relay for "as@a.com" what wrong i would have made?
Plz guide me

Are you sending your email via IIS ? if yes then most probably your local smtp server is not allowing relay by default. so you must enable relay for that domain or authenticate to the local smtp first. This can be done in the IIS settings :) you can google for it

I have did authentication before itself.

Dim mailobj As New System.Net.Mail.SmtpClient
        mailobj.Host = "localhost"
        mailobj.Send(txtfrom.Text, txtto.Text, txtsub.Text, txtmsg.Text)

What I have to do in relay option?

The thing which i have sent is in inetpub/mailroot/queue.