Smarty
[ class tree: Smarty ] [ index: Smarty ] [ all elements ]

File: function.mailto.php

Source Location: /PhpDocumentor-1.5.0a1/phpDocumentor/Smarty-2.6.0/libs/plugins/function.mailto.php

Classes:

Page Details:

Smarty plugin

smarty_function_mailto [line 49]

string smarty_function_mailto( array $params, Smarty &$smarty)

Smarty {mailto} function plugin

Type: function
Name: mailto
Date: May 21, 2002 Purpose: automate mailto address link creation, and optionally encode them.
Input:

  • address = e-mail address
  • text = (optional) text to display, default is address
  • encode = (optional) can be one of: * none : no encoding (default) * javascript : encode with javascript * hex : encode with hexidecimal (no javascript)
  • cc = (optional) address(es) to carbon copy
  • bcc = (optional) address(es) to blind carbon copy
  • subject = (optional) e-mail subject
  • newsgroups = (optional) newsgroup(s) to post to
  • followupto = (optional) address(es) to follow up to
  • extra = (optional) extra tags for the href link
Examples:
 {mailto address="me@domain.com"}
 {mailto address="me@domain.com" encode="javascript"}
 {mailto address="me@domain.com" encode="hex"}
 {mailto address="me@domain.com" subject="Hello to you!"}
 {mailto address="me@domain.com" cc="you@domain.com,they@domain.com"}
 {mailto address="me@domain.com" extra='class="mailto"'}



Parameters

array   $params  
Smarty   &$smarty  
[ Top ]



Documentation generated on Mon, 11 Mar 2019 15:50:19 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.