troubleshooting Question

Sending an email using SMTP throws a "Mailbox unavailable. The server response was: Too many invalid recipients" Error

Avatar of COHFL
COHFLFlag for United States of America asked on
6 Comments1 Solution1686 ViewsLast Modified:
Hi there,
i'm trying to send an email with the code below. The thing is that i keep getting this error "Mailbox unavailable. The server response was: Too many invalid recipients" is there something i'm missing?
I'm using VS 2008
Public Shared Sub SendNotificationEmail(ByVal emailer As String, ByVal MessageSubject As String, ByVal MessageBody As String)

            'create the mail message
            Dim mail As New Net.Mail.MailMessage()

            'set the addresses
            mail.From = New Net.Mail.MailAddress("")'this email address does exist
            mail.To.Add("") 'this email does exits
            'set the content
            mail.Subject = MessageSubject & " " & Now.ToShortDateString
            mail.Body = MessageBody

                'set the server to be used
                Dim smtp As New Net.Mail.SmtpClient("") 
                'send the message
            Catch ex As Exception
                Throw ex.InnerException
            End Try

        End Sub

Open in new window


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros