No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Vous devez être membre et vous identifier pour publier un article.
Les visiteurs peuvent toutefois commenter chaque article par une réponse.

[ASP] Envoyer un mail avec CDONTS

Astuces de l’Infobrol (Développement)Article publié le 28/01/2005 13:50:15


Vous pouvez installer CDONTS pour votre IIS avec l'Option Pack 4 de Windows NT, mais CDONTS n'est plus présent depuis la version IIS 5.1.
Donc sous Windows XP (Pro), ou Windows 2003 Server vous n'aurez pas accès à ce composant.

Si vous utilisez Windows XP, ou Windows 2003 Server, vous devez télécharger cdonts.dll puis l'enregistrer dans la base de registre sur votre serveur.

Placez le fichier Cdonts.dll dans le sous-répertoire System32 de votre winroot (WINNT\System32 dans la plupart des cas).
Dans le menu Démarrer, sélectionnez Exécuter puis tapez :

regsvr32 cdonts.dll


pour enregistrer la dll dans la base de registre.


Exemple d'utilisation :

  1. ‹%
  2.  
  3. Dim Mailer
  4.  
  5. Set Mailer = Server.CreateObject("CDONTS.NewMail")
  6. ' on crée l'objet CDONTS
  7.  
  8. Mailer.To = "destinataire@email.com"
  9. ' email du destinataire
  10.  
  11. Mailer.From = "expediteur@email.com"
  12. ' email de l'expediteur
  13.  
  14. Mailer.Subject = "Titre du message"
  15. ' titre du message
  16.  
  17. Mailer.Body = "Le texte qui sera envoyé"
  18. ' corps du message
  19.  
  20. Mailer.Send
  21. ' on envoie le tout
  22.  
  23. %›


Informations complémentaires :

Consulter la page Web Windows Server 2003 n'installe pas CDONTS
Consulter la page Web Description de CDONTS
Consulter la page Web HOWTO: Utilisation de CDONTS
Consulter la page Web Envoyer en format HTML avec CDONTS

Avatar :: Steph Un article de Steph

Source : support.microsoft.com


Sélection, tri et recherche d'articles
FILTRER :
TRIER :1er critère : 2e critère :
CHERCHER : Dans les titres Dans le contenu


[Afficher les liens en fonction des critères du formulaire ci-dessus]

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 13/09/2004, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/ast-rf-193.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.