Click here to Skip to main content
15,888,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to solve following Error
{"Exceeded storage allocation. The server response was: 2cAn1m01L2s05DV01 :: auth :: Message would bring account over daily quota."}

as my code to sent email as :

VB
mailMsg.Subject = strSubject
            mailMsg.Body = strMailMsg
            mailMsg.IsBodyHtml = True
            mailMsg.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure


            If Trim(strReplyTo).Length > 0 Then
                mailMsg.Headers.Add("Reply-To", strReplyTo)
            End If

            mailMsg.Headers.Add("X-Organization", strCompanyName)
            If Trim(strReplyTo).Length > 0 Then
                mailMsg.ReplyTo = New MailAddress(strReplyTo)
            End If

            SmtpServer.Send(mailMsg)
          


            fnSendEmail = True
        Catch ex As System.Net.Mail.SmtpException
            gboolsmtp = True
            GoTo nextsmtp
        Catch ex As Exception
            Me.Cursor = Cursors.Default
            MessageBox.Show(ex.Message, me.text, MessageBoxButtons.OK, MessageBoxIcon.Error)
            ' StoreErrorLog(Me.Text, ex.Message, ex.StackTrace)
        End Try
Posted
Updated 22-Jul-13 23:26pm
v2

Quote:
Message would bring account over daily quota


Get a mailbox with a bigger quota.

[Edit]

Here's a prime example of getting an error and jumping to a conclusion without understanding the error itself. Taking the time to read the error can point you directly to the problem (over daily quota), and would help you realize that the issue is with your SMTP provider and not your code.

75% of debugging is understanding why something is happening, the other 25% is understanding how to fix it. A little effort in the why will save you hours in the how.

[/Edit]
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 23-Jul-13 1:27am    
5ed :-)
—SA
You have to wait a day!

The message states that you are going over your daily quota.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 23-Jul-13 1:27am    
Captain Obvious at work! 5ed.
—SA
Mehdi Gholam 23-Jul-13 1:36am    
:)

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