Changes between Version 1 and Version 2 of WikiStart


Ignore:
Timestamp:
Mar 11, 2006, 4:21:58 AM (18 years ago)
Author:
bobe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v1 v2  
    1 = Welcome to Trac 0.9.4 =
     1= Wamailer 3.0 =
    22
    3 Trac is a '''minimalistic''' approach to '''web-based''' management of
    4 '''software projects'''. Its goal is to simplify effective tracking and handling of software issues, enhancements and overall progress.
     3Qu’est-ce que Wamailer ? Une '''librairie''' composée de plusieurs classes écrites en [http://www.php.net/ PHP] et permettant de générer et envoyer des emails.[[BR]]
     4Wamailer respecte du mieux possible les différentes RFC décrivant la syntaxe des emails.[[BR]]
     5Wamailer est distribué sous licence LGPL.
    56
    6 All aspects of Trac have been designed with the single goal to
    7 '''help developers write great software''' while '''staying out of the way'''
    8 and imposing as little as possible on a team's established process and
    9 culture.
     7Pour l’envoi proprement dit, Wamailer offre plusieurs possibilités:
    108
    11 As all Wiki pages, this page is editable, this means that you can
    12 modify the contents of this page simply by using your
    13 web-browser. Simply click on the "Edit this page" link at the bottom
    14 of the page. WikiFormatting will give you a detailed description of
    15 available Wiki formatting commands.
     9 * Utilisation de la fonction mail() de PHP
     10 * Ouverture d’un socket de connexion et dialogue avec un serveur SMTP
     11 * Appel système à un MTA local (Sendmail, Postfix, …)
    1612
    17 "[wiki:TracAdmin trac-admin] ''yourenvdir'' initenv" created
    18 a new Trac environment, containing a default set of wiki pages and some sample
    19 data. This newly created environment also contains
    20 [wiki:TracGuide documentation] to help you get started with your project.
     13[À compléter/corriger]
    2114
    22 You can use [wiki:TracAdmin trac-admin] to configure
    23 [http://trac.edgewall.com/ Trac] to better fit your project, especially in
    24 regard to ''components'', ''versions'' and ''milestones''.
     15La version 3.0 est une version complètement réécrite en PHP5.[[BR]]
     16« Pourquoi ? La version actuelle (2.x) semble bien fonctionner », me direz-vous. Certes, mais on ne peut pas nier que le code soit un peu vieillot. J’ai commencé à développer Wamailer en 2002 et la version courante, modulo quelques corrections au cours des ans et pour les besoins de [http://phpcodeur.net/wascripts/wanewsletter/ Wanewsletter], date de 2003. Bref, tout cela méritait un bon nettoyage, et la tentation de tout refaire proprement était forte…
     17
     18Je préfère vous laisser lire le code plutôt que de tenter de vous décrire de manière obscure et maladroite la façon dont j’ai souhaité architecturer l’ensemble.
     19
     20Voici un exemple basique d’utilisation:
     21
     22{{{
     23<?php
     24require 'mailer.class.php';
     25
     26$email = new Email();
     27$email->addRecipient("bobe <my@address.tld>");
     28$email->setSubject("Ici, le sujet");
     29$email->setTextBody("Ici, le message");
     30
     31Mailer::send($email);
     32?>
     33}}}
     34
     35Un autre exemple avec cette fois un message en HTML et un fichier joint:
     36
     37{{{
     38<?php
     39require 'mailer.class.php';
     40
     41$message = "<p>Ici, le <strong>message en HTML</strong>!</p>
     42
     43<p>Une image&#160;:</p>
     44<img src='http://example.org/path/to/image.png' alt='my text'>
     45<p>Ciao!</p>";
     46
     47$email = new Email();
     48$email->setFrom('one@example.org', 'Aurélien');
     49$email->addRecipient('my@address.tld', 'bobe');
     50$email->setSubject("Ici, le sujet");
     51$email->setHTMLBody($message);
     52$email->attach('/path/to/file');
     53
     54Mailer::send($email);
     55?>
     56}}}
     57
     58[D’autres exemples ou une page 'exemple' à venir]
     59
     60Bien entendu, n’hésitez pas à tester tout cela et me faire parvenir vos remarques! [[BR]]
     61 ''Bobe''
    2562
    2663
    27 TracGuide is a good place to start.
     64== Liens ==
    2865
    29 Enjoy! [[BR]]
    30 ''The Trac Team''
    31 
    32 == Starting Points ==
    33 
    34  * TracGuide --  Built-in Documentation
    35  * [http://projects.edgewall.com/trac/ The Trac project] -- Trac Open Source Project
    36  * [http://projects.edgewall.com/trac/wiki/TracFaq Trac FAQ] -- Frequently Asked Questions
    37  * TracSupport --  Trac Support
    38 
    39 For a complete list of local wiki pages, see TitleIndex.
    40 
    41 Trac is brought to you by [http://www.edgewall.com/ Edgewall Software],
    42 providing professional Linux and software development services to clients
    43 worldwide. Visit http://www.edgewall.com/ for more information.
     66 * [http://phpcodeur.net/wascripts/wamailer/ Wamailer] -- Présentation de Wamailer sur le site phpcodeur.net
     67 * [source:trunk/ Browse source] -- Accèder au code en développement de Wamailer 3.0