Information générale
Catégorie:
Code, syntaxe and commandes
>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?
Are you sure it's not simply an internet access problem ?
>I have had a suggestion of using a local smtp server, can anyone recommend a free one that is easy to setup and reliable?
That would have been mine :-}
Depending on what OS's this has to run on :
IIRC Smtp servers are included (or can be installed) on Pro versions of Windows 7 and XP as well as Windows server versions.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement