IdentifiantMot de passe
Loading...
Mot de passe oubli� ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les r�ponses en temps r�el, voter pour les messages, poser vos propres questions et recevoir la newsletter

JavaScript Discussion :

Comment envoyer un mail � partir d'une page WEB via Thunderbid ?


Sujet :

JavaScript

  1. #21
    Membre �prouv� Avatar de Zebulon777
    Homme Profil pro
    Informaticien
    Inscrit en
    F�vrier 2005
    Messages
    1 327
    D�tails du profil
    Informations personnelles :
    Sexe : Homme
    �ge : 58
    Localisation : France, Essonne (�le de France)

    Informations professionnelles :
    Activit� : Informaticien

    Informations forums :
    Inscription : F�vrier 2005
    Messages : 1 327
    Par d�faut
    Oui, c'est ce que nous faisons : on utilise les ActiveX vu que l'application ne fonctionne que sous IE (ou sous FF avec le module compl�mentaire IE TAB PLUS).

    Nous utilisons bien les ActiveX, mais je n'arrive pas � trouver celui qui permete de contr�ler Thunderbird.

  2. #22
    R�dacteur/Mod�rateur

    Avatar de SpaceFrog
    Homme Profil pro
    D�veloppeur Web Php Mysql Html Javascript CSS Apache - Int�grateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 659
    D�tails du profil
    Informations personnelles :
    Sexe : Homme
    �ge : 75
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activit� : D�veloppeur Web Php Mysql Html Javascript CSS Apache - Int�grateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 659
    Billets dans le blog
    1
    Par d�faut
    C'est sans doute qu'il n'y en a pas ...
    les activeX permettent de prendre la main en OLE sur les applications microsoft...
    Ma page Developpez - Mon Blog Developpez
    Pr�sident du CCMPTP (Comit� Contre le Mot "Probl�me" dans les Titres de Posts)
    Deux r�gles du succ�s: 1) Ne communiquez jamais � quelqu'un tout votre savoir...
    Votre post est r�solu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de D�veloppez !

  3. #23
    Membre �prouv� Avatar de Zebulon777
    Homme Profil pro
    Informaticien
    Inscrit en
    F�vrier 2005
    Messages
    1 327
    D�tails du profil
    Informations personnelles :
    Sexe : Homme
    �ge : 58
    Localisation : France, Essonne (�le de France)

    Informations professionnelles :
    Activit� : Informaticien

    Informations forums :
    Inscription : F�vrier 2005
    Messages : 1 327
    Par d�faut
    Pour le moment, voici ce que j'ai trouv�, si �a peut aider du monde, j'en serai ravi :
    Code : S�lectionner tout - Visualiser dans une fen�tre � part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
     
    alert("début smtp");		
    var objEmail = new ActiveXObject("CDO.Message");  
    objEmail.From = "...";  
    objEmail.To = "...";  
    objEmail.Cc = "...";  
    objEmail.Subject = "HELLO WORLD";  
    objEmail.Textbody = "TEST";  
    objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2;  
    objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "...";
    objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25;  
    objEmail.Configuration.Fields.Update();  
    objEmail.Send();  
    alert("fin smtp");
    Mais j'ai une erreur 554.
    J'ai pr�venu les administrateurs.
    En tout cas, �a prend bonne tournure, j'esp�re que �a va fonctionner.

  4. #24
    Membre �prouv� Avatar de Zebulon777
    Homme Profil pro
    Informaticien
    Inscrit en
    F�vrier 2005
    Messages
    1 327
    D�tails du profil
    Informations personnelles :
    Sexe : Homme
    �ge : 58
    Localisation : France, Essonne (�le de France)

    Informations professionnelles :
    Activit� : Informaticien

    Informations forums :
    Inscription : F�vrier 2005
    Messages : 1 327
    Par d�faut
    Je relance ce sujet car j'ai maintenant des probl�me avec le protocole IMAP.

    Voici le code que j'utilise avec STMP

    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
    21
    22
    23
    24
    25
    26
    27
    28
    29
     
    		var WSmtp = G_SMTP;
    		var WUser = G_USER;
    		var WMdp = G_MDP;
    		var WPort = G_PORT;
     
    		var objEmail = new ActiveXObject("CDO.Message");  
            objEmail.From = "adresse@mail"; 
            objEmail.To = WDestinataire; 
            objEmail.Cc = ""; 
    		objEmail.Subject = WObjet; // "HELLO WORLD";  
    // we are sending a text email. simply switch the comments around to send an html email instead
    		objEmail.Textbody = WCorps;  //		objEmail.HTMLBody = "this is the body"
    // Send the message using the network (SMTP over the network).
    		objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2;  
    //		
    		objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = WSmtp;
    // If your server requires outgoing authentication uncomment the lines bleow and use a valid email address and password.		
    		objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 //basic (clear-text) authentication		
    //Your UserID on the SMTP server
    		objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = WUser;
    //Your password on the SMTP server
    		objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = WMdp;
    // Port...		
    		objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = WPort;  
     //Use SSL for the connection (False or True)
    		objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = false;
    		objEmail.Configuration.Fields.Update(); 
    		objEmail.Send();
    Ce code fonctionne parfaitement sur un emplacement pour lequel nous avons bien toutes les donn�es indispensables.
    Logique.

    Mais sur un autre emplacement, je dois utiliser le protocole IMAP et l�, �a ne fonctionne plus du tout.

    Est-ce que vous pouvez me sortir de la panade, svp ?

Discussions similaires

  1. Envoi de mails � partir d'une page web
    Par Torx26 dans le forum Balisage (X)HTML et validation W3C
    R�ponses: 12
    Dernier message: 20/05/2012, 14h42
  2. [Mail] envoyer un email � partir d'une page web
    Par mouss4rs dans le forum Langage
    R�ponses: 4
    Dernier message: 20/02/2009, 15h47
  3. R�ponses: 2
    Dernier message: 28/08/2008, 12h27
  4. Comment ouvrir Word ou Acrobat Reader à partir d'une page web ?
    Par Kuuei dans le forum G�n�ral Conception Web
    R�ponses: 4
    Dernier message: 17/05/2006, 15h18

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo