Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Smtp send fails
Message
De
26/01/2013 13:15:54
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Smtp send fails
Divers
Thread ID:
01564254
Message ID:
01564254
Vues:
59
Hi,

I have some C# code which works fine on my system sending emails, but at th eclient site there is a delay of about 45 seconds when the command runs and then it errors out:

Failure sending mail.
Source: System
Target Site: Void Send(System.Net.Mail.MailMessage)
Stack Trace: at System.Net.Mail.SmtpClient.Send(MailMessage message)

The line it is failing on is:

client.Send(msg);

I'm using the same credentials and accounts on my pc.

Any ideas what could cause this and/or alternative methods?

I have had a suggestion of using a local smtp server, can anyone recommend a free one that is easy to setup and reliable?

update:
Got more info on the error:

System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform