yii-simple-mailer An simple mail component

YiiMailer is an simple mail extensions

  1. Requirements
  2. Configuration
  3. Usage
  4. Resources

Requirements

  • PHP >= 5
  • fsockopen function or configuration php mail

Configuration

'components' => array(
    'mailer' => array(
        // for smtp
        'class' => 'ext.mailer.SmtpMailer',
        'server' => 'smtp.163.com',
        'port' => '25',
        'username' => 'your username',
        'password' => 'your password',

        // for php mail
        'class' => 'ext.mailer.PhpMailer',
    ),
)

Usage

$to = array(
    'somemail@gmail.com',
);

// or

$to = 'somemail@gmail.com';

$subject = 'Hello Mailer';
$content = 'Some content';

Yii::app()->mailer->send($to, $subject, $content);

Resources

Github repo

3 0
2 followers
1 147 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Mail
Developed by: xiaokai
Created on: Apr 30, 2013
Last updated: 11 years ago

Downloads

show all

Related Extensions