Bonjour,
Voila le code que j'utilise pour envoyer un mail dans mon application :
Voila l'erreur qui est retournée :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 Set objMail = Server.CreateObject("CDO.Message") Set objMailConf = Server.CreateObject("CDO.Configuration") objMailConf.Fields.item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 objMailConf.Fields.item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "nomserveursmtp" objMailConf.fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = "25" objMailConf.Fields.item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10 objMailConf.Fields.item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "mailconnection" objMailConf.Fields.item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "passwordconnection" objMailConf.Fields.item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 objMailConf.Fields.Update Set objMail.Configuration = objMailConf objMail.From = strSender objMail.To = strRecipients objMail.Subject = strSubject objMail.HTMLBody = strContentType objMail.TextBody = strMessage objMail.Fields.Update objMail.Send Set objMail = Nothing
La ligne 380 correspond à objMail.Send2700
CDO.Message.1 error '80040213'
The transport failed to connect to the server.
/fr/commande/coordonneesavis.asp, line 380
J'ai vérifié les paramètres avec les personnes qui possèdent le serveur smtp.
Je ne comprends pas pourquoi cela ne fonctionne pas.
Pour info, l'appli est sur un serveur mutualisé 1&1 et le serveur smtp est ailleurs.
Merci de votre aide,
Valou79
Partager