Bonjour j'essais d'envoyer un courriel avec ASP.NET 2.0 et sa ne fonctionne jamais. Il me renvoie tjr l'erreur "Failure sending mail."
Imports
System.Net.Mail
'-------------------------------------------------------------------
Dim
mail As New MailMessage("admin@axesIp.com", "francis_rondeau@yahoo.ca")
Dim smtp As New SmtpClient("AxesIp", 25)
'--------------------------------------------------------------------
try
mail.Subject =
"Sending Mail with ASP.NET 2.0"
mail.Body =
"Ceci est un test, sera t'il fructueux ? "
smtp.Send(mail)
catch ex as exception
response.write(ex.message)
end try
'--------------------------------------------
J'ai aussi configuré le STMP à l'aide de l'utilitaire "
Web Site Administration Tool " fourni par Visual Studio 2005
Menu Website > ASP.NET Configuration > Application > Configure STMP e-mail.....
MERCI de votre aide si précieuse
Whitelynx [:P]