Click here to Skip to main content
15,910,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       Dim add_from As New MailAddress("hien3@grc.vn", "CÔNG TY TNHH ABC", System.Text.Encoding.UTF8)
       Dim add_to As MailAddress
       add_to = New MailAddress("vanhien0101@yahoo.com.vn", "DC hien", System.Text.Encoding.UTF8)
       Dim mm As MailMessage
       mm = New MailMessage(add_from, add_to)
       mm.Subject = "hello"
       mm.Body = "How are you?"
       Dim client As New SmtpClient("(ip address of server)", Convert.ToInt32(25))
       client.Send(mm)
       ' Error :Mailbox unavailable. The server response was: <mail address>, Recipient unknown
       ' please help me fix this error. Thanks!
   End Sub
Posted

1 solution

This looks like an SMTP mail error.

Looks like a typo in the email address that the system is trying to send the form email to.

Follow some points:
1. Check that you have valid SMTP server settings in the Host area of the site.
2. Check all email addresses that the form is being sent to.
3. If you cannot spot the error. Remove the addresses the form is addressed to and start again.
4. Remember that a logged in user has to have valid email addresses as well or the copy of the form option will not work to them.

Here is similar QA Mailbox unavailable.[^], check out if you get some help from it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900