Files
smarty/docs/it/designers/language-custom-functions/language-function-mailto.xml

151 lines
4.9 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="language.function.mailto">
<title>mailto</title>
<informaltable frame="all">
<tgroup cols="5">
<colspec colname="param" align="center" />
<colspec colname="type" align="center" />
<colspec colname="required" align="center" />
<colspec colname="default" align="center" />
<colspec colname="desc" />
<thead>
<row>
<entry>Nome Attributo</entry>
<entry>Tipo</entry>
<entry>Obbligatorio</entry>
<entry>Default</entry>
<entry>Descrizione</entry>
</row>
</thead>
<tbody>
<row>
<entry>address</entry>
<entry>stringa</entry>
<entry></entry>
<entry><emphasis>nessuno</emphasis></entry>
<entry>l'indirizzo e-mail</entry>
</row>
<row>
<entry>text</entry>
<entry>stringa</entry>
<entry>no</entry>
<entry><emphasis>nessuno</emphasis></entry>
<entry>il testo da visualizzare sul link; il default
è l'indirizzo e-mail</entry>
</row>
<row>
<entry>encode</entry>
<entry>stringa</entry>
<entry>no</entry>
<entry><emphasis>none</emphasis></entry>
<entry>Come codificare l'indirizzo. Può essere
<literal>none</literal>, <literal>hex</literal> o
<literal>javascript</literal>.</entry>
</row>
<row>
<entry>cc</entry>
<entry>stringa</entry>
<entry>no</entry>
<entry><emphasis>nessuno</emphasis></entry>
<entry>indirizzi e-mail da mettere 'per conoscenza'.
Separateli con una virgola.</entry>
</row>
<row>
<entry>bcc</entry>
<entry>stringa</entry>
<entry>no</entry>
<entry><emphasis>nessuno</emphasis></entry>
<entry>indirizzi e-mail da mettere 'in copia nascosta'.
Separateli con una virgola.</entry>
</row>
<row>
<entry>subject</entry>
<entry>stringa</entry>
<entry>no</entry>
<entry><emphasis>nessuno</emphasis></entry>
<entry>oggetto della e-mail.</entry>
</row>
<row>
<entry>newsgroups</entry>
<entry>stringa</entry>
<entry>no</entry>
<entry><emphasis>nessuno</emphasis></entry>
<entry>newsgroups a cui scrivere. Separateli con una virgola.</entry>
</row>
<row>
<entry>followupto</entry>
<entry>stringa</entry>
<entry>no</entry>
<entry><emphasis>n/a</emphasis></entry>
<entry>indirizzi per il follow up to. Separateli con una virgola.</entry>
</row>
<row>
<entry>extra</entry>
<entry>stringa</entry>
<entry>no</entry>
<entry><emphasis>nessuno</emphasis></entry>
<entry>qualsiasi informazione ulteriore che vogliate passare
al link, ad esempio classi per i fogli di stile</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>
La funzione mailto automatizza la creazione di link mailto e,
opzionalmente, li codifica. Codificare gli indirizzi e-mail
rende più difficile per i web spider raccoglierli dal vostro sito.
</para>
<note>
<title>Nota tecnica</title>
<para>
javascript è probabilmente il metodo più completo di
codifica, ma potete usare anche la codifica esadecimale.
</para>
</note>
<example>
<title>mailto</title>
<programlisting>
{mailto address="me@example.com"}
{mailto address="me@example.com" text="send me some mail"}
{mailto address="me@example.com" encode="javascript"}
{mailto address="me@example.com" encode="hex"}
{mailto address="me@example.com" subject="Hello to you!"}
{mailto address="me@example.com" cc="you@example.com,they@example.com"}
{mailto address="me@example.com" extra='class="email"'}
OUTPUT:
&lt;a href="mailto:me@example.com" &gt;me@domain.com&lt;/a&gt;
&lt;a href="mailto:me@example.com" &gt;send me some mail&lt;/a&gt;
&lt;script type="text/javascript" language="javascript"&gt;eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%6
9%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6d%65%40%64%6f%6d%
61%69%6e%2e%63%6f%6d%22%20%3e%6d%65%40%64%6f%6d%61%69%6e%2e%63%6f%6d%3c%2f%61%3e
%27%29%3b'))&lt;/script&gt;
&lt;a href="mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d" &gt;&#x6d;&#x65;&#x40;&#x64;&#x6f;&#x6d;&#x61;&#x69;&#x6e;&#x2e;&#x63;&#x6f;&#x6d;&lt;/a&gt;
&lt;a href="mailto:me@example.com?subject=Hello%20to%20you%21" &gt;me@domain.com&lt;/a&gt;
&lt;a href="mailto:me@example.com?cc=you@domain.com%2Cthey@domain.com" &gt;me@domain.com&lt;/a&gt;
&lt;a href="mailto:me@example.com" class="email"&gt;me@domain.com&lt;/a&gt;</programlisting>
</example>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->