When I send mail use smtpmail get error: Mailbox unavailable.(asp.net 2.0)

C

Christopher Reed

This generally means that the mail destination is not able to accept email.
Post your code and we can see if there are other issues.
 
M

mary

My code :
Dim smtpmail As New Net.Mail.SmtpClient("127.0.0.1")
Dim msg As New Net.Mail.MailMessage()
msg.From = New Net.Mail.MailAddress("(e-mail address removed)")
msg.To.Add("(e-mail address removed)")
msg.Subject = "this is a test"
msg.Body = "this is mail body ,thanks !"
smtpmail.Send(msg)
 
C

Christopher Reed

Are you using a smart host on your local SMTP server? Is so, does it allow
relaying?

I noticed that your domain uses cox.net for mailing. Do you know if you
have the ability to go through port 25 on cox.net?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top