mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-10 09:11:41 +01:00
176 lines
6.8 KiB
XML
176 lines
6.8 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>Nombre del Atributo</entry>
|
|
<entry>Tipo</entry>
|
|
<entry>Requerido</entry>
|
|
<entry>Default</entry>
|
|
<entry>Descripción</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>address</entry>
|
|
<entry>string</entry>
|
|
<entry>Yes</entry>
|
|
<entry><emphasis>n/a</emphasis></entry>
|
|
<entry>La dirección de correo electronico(e-mail)</entry>
|
|
</row>
|
|
<row>
|
|
<entry>text</entry>
|
|
<entry>string</entry>
|
|
<entry>No</entry>
|
|
<entry><emphasis>n/a</emphasis></entry>
|
|
<entry>El texto para mostrar, el default es la dirección de correo (e-mail)</entry>
|
|
</row>
|
|
<row>
|
|
<entry>encode</entry>
|
|
<entry>string</entry>
|
|
<entry>No</entry>
|
|
<entry><emphasis>none</emphasis></entry>
|
|
<entry>Como codificar el e-mail. Puede ser
|
|
<literal>none</literal>, <literal>hex</literal>,
|
|
<literal>javascript</literal> o <literal>javascript_charcode</literal>.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>cc</entry>
|
|
<entry>string</entry>
|
|
<entry>No</entry>
|
|
<entry><emphasis>n/a</emphasis></entry>
|
|
<entry> La dirección de correo(e-mail) para mandar una
|
|
copia el carbon(cc). Separados por una coma.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>bcc</entry>
|
|
<entry>string</entry>
|
|
<entry>No</entry>
|
|
<entry><emphasis>n/a</emphasis></entry>
|
|
<entry>Dirección de correo electronico(e-mail) para mandar
|
|
una copia al carbon ofuscada(bcc). Separando las direcciones por comas.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>subject</entry>
|
|
<entry>string</entry>
|
|
<entry>No</entry>
|
|
<entry><emphasis>n/a</emphasis></entry>
|
|
<entry>Asunto del correo electronico(e-mail).</entry>
|
|
</row>
|
|
<row>
|
|
<entry>newsgroups</entry>
|
|
<entry>string</entry>
|
|
<entry>No</entry>
|
|
<entry><emphasis>n/a</emphasis></entry>
|
|
<entry>newsgroup para enviar. separando las direcciones por comas.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>followupto</entry>
|
|
<entry>string</entry>
|
|
<entry>No</entry>
|
|
<entry><emphasis>n/a</emphasis></entry>
|
|
<entry>Direcciones para acompañar. Separe las direcciones con comas.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>extra</entry>
|
|
<entry>string</entry>
|
|
<entry>No</entry>
|
|
<entry><emphasis>n/a</emphasis></entry>
|
|
<entry> Cualquier otra información que usted quiera pasar
|
|
por el link, tal como plantillas de estilo
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
<para>
|
|
{mailto} automatiza el proceso de creación de links de correo
|
|
electronico(e-mail) y opcionalmente los codifica.
|
|
Codificar el correo electronico(e-mail) hace mas difícil que
|
|
las web spiders tomen las direciones de nuestro sitio.
|
|
</para>
|
|
<note>
|
|
<title>Nota Técnica</title>
|
|
<para>
|
|
javascript es probablemente el codificador mas utilizado, aunque
|
|
usted puede utilizar también codificación hexadecimal.
|
|
</para>
|
|
</note>
|
|
<example>
|
|
<title>{mailto}</title>
|
|
<programlisting>
|
|
<![CDATA[
|
|
{mailto address="me@example.com"}
|
|
<a href="mailto:me@example.com" >me@example.com</a>
|
|
|
|
{mailto address="me@example.com" text="send me some mail"}
|
|
<a href="mailto:me@example.com" >send me some mail</a>
|
|
|
|
{mailto address="me@example.com" encode="javascript"}
|
|
<script type="text/javascript" language="javascript">
|
|
eval(unescape('%64%6f% ... snipped ...%61%3e%27%29%3b'))
|
|
</script>
|
|
|
|
{mailto address="me@example.com" encode="hex"}
|
|
<a href="mailto:%6d%65.. snipped..3%6f%6d">m&..snipped...#x6f;m</a>
|
|
|
|
{mailto address="me@example.com" subject="Hello to you!"}
|
|
<a href="mailto:me@example.com?subject=Hello%20to%20you%21" >me@example.com</a>
|
|
|
|
{mailto address="me@example.com" cc="you@example.com,they@example.com"}
|
|
<a href="mailto:me@example.com?cc=you@example.com%2Cthey@example.com" >me@example.com</a>
|
|
|
|
{mailto address="me@example.com" extra='class="email"'}
|
|
<a href="mailto:me@example.com" class="email">me@example.com</a>
|
|
|
|
{mailto address="me@example.com" encode="javascript_charcode"}
|
|
<script type="text/javascript" language="javascript">
|
|
<!--
|
|
{document.write(String.fromCharCode(60,97, ... snipped ....60,47,97,62))}
|
|
//-->
|
|
</script>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
<para>
|
|
ver también
|
|
<link linkend="language.modifier.escape">escape</link>,
|
|
<link linkend="tips.obfuscating.email">Obfuscating E-mail Addresses</link>
|
|
y <link linkend="language.function.textformat">{textformat}</link>
|
|
</para>
|
|
</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
|
|
-->
|