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

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?

This article has been dead for over six months. Start a new discussion instead.