1 {**************************************************************************}
3 {* Copyright (C) 2003-2006 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 {**************************************************************************}
23 <h1>Envoyer un mail</h1>
27 Les destinataires sont simplement séparés par des virgules
30 Pense à te mettre en copie cachée du mail sinon tu n'auras aucun moyen de retrouver
31 le mail que tu envoies par cette page
35 <script type="text/javascript">//<![CDATA[
37 function check(form) {
38 if(form.sujet.value == "") {
40 return confirm ("Le sujet du mail est vide, veux tu continuer ?");
48 <form action="{rel}/emails/send" method="post" onsubmit="return check(this);">
49 <table class="bicol" cellpadding="2" cellspacing="0">
51 <th colspan="2">Destinataires</th>
54 <td class="titre">de :</td>
56 <input type='hidden' name='signature' value='1' />
57 <input type='text' name='from' size='60' value='{if $smarty.request.from}
58 {$smarty.request.from}
60 "{$smarty.session.prenom} {$smarty.session.nom}" <{$smarty.session.bestalias}@{#globals.mail.domain#}>
65 <td class="titre">à :</td>
67 <input type='text' name='to' size='60' value="{$smarty.request.to}" />
71 <td class="titre">copie :</td>
73 <input type='text' name='cc' size='60' value="{$smarty.request.cc}" />
77 <td class="titre">copie cachée :</td>
79 <input type='text' name='bcc' size='60' value="{$smarty.request.bcc}" />
88 Tu peux également ajouter certains de tes contacts aux destinataires :
93 <table class="bicol" cellpadding="2" cellspacing="0" summary="Destinataires parmi les contacts">
94 {foreach key=key item=contact from=$contacts}
96 <tr class="{cycle values="impair,pair"}">
99 <input type="checkbox" name="contacts[{$contact.forlife}]"
100 value="{$contact.prenom} {$contact.nom} <{$contact.forlife}@{#globals.mail.domain#}>"
101 {if $smarty.request.contacts && $smarty.request.contacts.forlife}checked="checked"{/if} />
102 <a href="{"fiche.php"|url}?user={$contact.forlife}" class="popup2">{$contact.prenom} {$contact.nom}</a> (X{$contact.promo})
117 Ne mets que du texte dans le contenu, pas de tags HTML
120 Il n'est pas possible d'envoyer un fichier en attachement
124 <table class="bicol" cellspacing="0" cellpadding="2" summary="Corps du message">
130 <input type='text' name='sujet' size='75' value="{$smarty.request.sujet}" />
140 <textarea name='contenu' rows="30" cols="75">
141 {$smarty.request.contenu}
142 {if !$smarty.request.contenu}
144 {$smarty.session.prenom} {$smarty.session.nom}
150 <input type="submit" name="submit" value="Envoyer" />
157 {* vim:set et sw=2 sts=2 sws=2: *}