1 {**************************************************************************}
3 {* Copyright (C) 2003-2004 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
6 {* This program is free software; you can redistribute it and/or modify *}
7 {* it under the terms of the GNU General Public License as published by *}
8 {* the Free Software Foundation; either version 2 of the License, or *}
9 {* (at your option) any later version. *}
11 {* This program is distributed in the hope that it will be useful, *}
12 {* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13 {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14 {* GNU General Public License for more details. *}
16 {* You should have received a copy of the GNU General Public License *}
17 {* along with this program; if not, write to the Free Software *}
18 {* Foundation, Inc., *}
19 {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
21 {**************************************************************************}
31 Les destinataires sont simplement séparés par des virgules
34 Pense à te mettre en copie cachée du mail sinon tu n'auras aucun moyen de retrouver
35 le mail que tu envoies par cette page
39 <script type="text/javascript">//<![CDATA[
41 function check(form) {
42 if(form.sujet.value == "") {
44 return confirm ("Le sujet du mail est vide, veux tu continuer ?");
52 <form action="{$smarty.server.REQUEST_URI}" method="post" onsubmit="return check(this);">
53 <table class="bicol" cellpadding="2" cellspacing="0">
55 <th colspan="2">Destinataires</th>
58 <td class="titre">de :</td>
60 <input type='hidden' name='signature' value='1' />
61 <input type='text' name='from' size='60' value='{if $smarty.request.from}
62 {$smarty.request.from}
64 "{$smarty.session.prenom} {$smarty.session.nom}" <{$smarty.session.bestalias}@{#globals.mail.domain#}>
69 <td class="titre">à :</td>
71 <input type='text' name='to' size='60' value="{$smarty.request.to}" />
75 <td class="titre">copie :</td>
77 <input type='text' name='cc' size='60' value="{$smarty.request.cc}" />
81 <td class="titre">copie cachée :</td>
83 <input type='text' name='bcc' size='60' value="{$smarty.request.bcc}" />
92 Tu peux également ajouter certains de tes contacts aux destinataires :
97 <table class="bicol" cellpadding="2" cellspacing="0" summary="Destinataires parmi les contacts">
98 {foreach key=key item=contact from=$contacts}
100 <tr class="{cycle values="impair,pair"}">
103 <input type="checkbox" name="contacts[{$contact.forlife}]"
104 value="{$contact.prenom} {$contact.nom} <{$contact.forlife}@{#globals.mail.domain#}>"
105 {if $smarty.request.contacts && $smarty.request.contacts.forlife}checked="checked"{/if} />
106 <a href="{"fiche.php"|url}?user={$contact.forlife}" class="popup2">{$contact.prenom} {$contact.nom}</a> (X{$contact.promo})
121 Ne mets que du texte dans le contenu, pas de tags HTML
124 Il n'est pas possible d'envoyer un fichier en attachement
128 <table class="bicol" cellspacing="0" cellpadding="2" summary="Corps du message">
134 <input type='text' name='sujet' size='75' value="{$smarty.request.sujet}" />
144 <textarea name='contenu' rows="30" cols="75">
145 {$smarty.request.contenu}
146 {if !$smarty.request.contenu}
148 {$smarty.session.prenom} {$smarty.session.nom}
154 <input type="submit" name="submit" value="Envoyer" />
161 {* vim:set et sw=2 sts=2 sws=2: *}