przewiń do treści

Zend Framework od podstaw

Włodzimierz Gajda

<?php

class My_Mail_Gmail extends My_Mail
{
    protected $_smtp_server  = 'smtp.gmail.com';
    protected $_from_email   = 'twoje.konto@gmail.com';
    protected $_from_caption = 'Administrator serwisu example.net';

    protected $_config = array(
        'ssl'      => 'tls',
        'port'     => 587,
        'auth'     => 'login',
        'username' => 'twoje.konto@gmail.com',
        'password' => 'haslo-twojego-konta-gmail'
    );
}

Listing 36.4. Klasa My_Mail_Gmail

Rozdział 36. Wysyłanie poczty

listing-36-04.txt