Return to Snippet

Revision: 44043
at April 5, 2011 07:53 by JonnySnip3r


Updated Code
<?php
/**
*	This is the email class, it handles all of the email requests etc.
*	
*	@category Suburban Arctic
*	@copyright Copyright (c) 2011 John Crossley (http://suburbanarctic.com)
*	@license http://suburbanarctic.com/angrypossum/
*	@version Release: 1.0
*	@link http://suburbanarctic.com#shop
*	@since Class available since Release 1.0
*/

class Email
{
    // Set some default variables::
    public $_email = '[email protected]';
    
    /**
     * Use this method to set a default email for the class.
     * So when the email is sent it's from this email.
     * 
     * @param string $email
     */
    public function set_default_email($email)
    {
        $this->_email = $email;
    }
    
    public function show_default_email()
    {
        return $this->_email;
    }
    
}

?>

Revision: 44042
at April 5, 2011 07:52 by JonnySnip3r


Initial Code
<?php
/**
*	This is the email class, it handles all of the email requests etc.
*	
*	@category Suburban Arctic
*	@copyright Copyright (c) 2011 John Crossley (http://suburbanarctic.com)
*	@license http://suburbanarctic.com/angrypossum/
*	@version Release: 1.0
*	@link http://suburbanarctic.com#shop
*	@since Class available since Release 1.0
*/

class Email
{
    // Set some default variables::
    public $_email = '[email protected]';
    
    /**
     * Use this method to set a default email for the class.
     * So when the email is sent it's from this email.
     * 
     * @param string $email
     */
    public function set_default_email($email)
    {
        $this->_email = $email;
    }
    
    public function show_default_email()
    {
        return $this->_email;
    }
    
}

?>

Initial URL

                                

Initial Description
This is only the start if an Email class.

Initial Title
Start of an Email class

Initial Tags

                                

Initial Language
PHP