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

Recommended Answers

All 6 Replies

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.

Can you post your code ??

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.