[SOLVED] Mailto (smarty) tag

General project discussion. NOT for help questions.
Post Reply
User avatar
webform
Power Poster
Power Poster
Posts: 505
Joined: Sat Nov 25, 2006 3:39 pm

[SOLVED] Mailto (smarty) tag

Post by webform »

Didn't there use to be the smarty tag {mailto} plus description in the Tag list?

I'm using CMS 1.4.1 and can't find any description of the tag anywhere in admin - Has the {mailto} tag ever been in the Tag list or is only in the Wiki online this tag is described?
Last edited by webform on Wed Aug 27, 2008 4:14 pm, edited 1 time in total.
jce76350
Beta Tester
Beta Tester
Posts: 2093
Joined: Mon May 29, 2006 1:20 pm

Re: Mailto (smarty) tag

Post by jce76350 »

Hi,

can't find any description of the tag anywhere
see on website  ;)
http://www.smarty.net/manual/en/languag ... mailto.php
Jean-Claude Etiemble MyPageFr
cyberman

Re: Mailto (smarty) tag

Post by cyberman »

You can find also a very small manual inside the smarty plugin file function.mailto.php in /lib/Smarty/plugins :)
/**
* 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
*                * javascript_charcode : encode with javascript charcode
*                * 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"'}
*
* @link http://smarty.php.net/manual/en/languag ... mailto.php {mailto}
*          (Smarty online manual)
* @version  1.2
* @author  Monte Ohrt
* @author  credits to Jason Sweat (added cc, bcc and subject functionality)
* @param    array
* @param    Smarty
* @return  string
*/
User avatar
webform
Power Poster
Power Poster
Posts: 505
Joined: Sat Nov 25, 2006 3:39 pm

Re: Mailto (smarty) tag

Post by webform »

Thank you very much.

I was only looking in the plugins folder and in the Tag list and couldn't find it!
Post Reply

Return to “General Discussion”