Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Encodes mailto links to hinder bots from scraping email addresses.
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
mailto
README

README

Requirements 

Yii 1.1.x
PHP 5.3

Install 

Extract to extensions directory
Add as component to main config
'mailto'=>array('class' =>'application.extensions.mailto.Mailto'),

Usage 

$options = array(
    'cc' => 'cc@theemail.com',
    'bcc' => 'bcc@theemail.com',
    'followupto' => 'followupto@theemail.com',
    'subject' => 'The Subject',
    'newsgroup' => 'newsgroup',
    'class' => 'emailLinkClass',
    'id' => 'emailLinkID',
    'name' => 'emailLinkName',
    'title' => 'emailLinkTitle',
);
 
Yii::app()->mailto->link('sendingto@gmail.com', 'javascript', 'Link Text', $options);
Something went wrong with that request. Please try again.