mailto Encodes mailto links to hinder bots from scraping email addresses.

  1. Requirements
  2. Install
  3. Usage

Hinders bots from scraping email addresses from your website.

GitHub

Requirements

  • Yii 1.1.x

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);
4 0
8 followers
426 downloads
Yii Version: 1.1
License: Apache-2.0
Category: Others
Developed by: cfletcher1856
Created on: Sep 22, 2011
Last updated: 13 years ago

Downloads

show all