Relay problem with eMail

T

Thomas Weise

My app sends a couple of eMails per day using SmtpClient.
Infrequently the mail-server returns "Sorry, over your relay limit". I don't
understand why relaying is an issue here. Is SmtpClient acting as a
mail-server itself? All I would want it to do is to log into my provider's
mail-server and send mails.
(Sorry that I have very very little insight in the background of how eMail
actually works).

Thanks for each hint, best regards,
Thomas

Dim emailClient As New SmtpClient(uServerInfo.SMTPServer)
Dim SMTPUserInfo As _
New System.Net.NetworkCredential(uServerInfo.User,
uServerInfo.PW)
emailClient.UseDefaultCredentials = False
emailClient.Credentials = SMTPUserInfo
...
message.Subject = sSubject
message.Body = sBody
emailClient.Send(message)
 
M

Markus

Infrequently the mail-server returns "Sorry, over your relay limit".
I don't understand why relaying is an issue here.

Well, even though you send the email by ".NET code", you need an
Emailserver to send it. So actually, there is no difference, if you
write the email out of an Email program or out of .NET code (as far as
your server/provider is concerned).

So your provider might have a limit of 100 Emails per day, that you can
send - and you are over this limit...

Hope this helps
Markus
 

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

Top