Start of an Email class


/ Published in: PHP
Save to your folder(s)

This is only the start if an Email class.


Copy this code and paste it in your HTML
  1. <?php
  2. /**
  3. * This is the email class, it handles all of the email requests etc.
  4. *
  5. * @category Suburban Arctic
  6. * @copyright Copyright (c) 2011 John Crossley (http://suburbanarctic.com)
  7. * @license http://suburbanarctic.com/angrypossum/
  8. * @version Release: 1.0
  9. * @link http://suburbanarctic.com#shop
  10. * @since Class available since Release 1.0
  11. */
  12.  
  13. class Email
  14. {
  15. // Set some default variables::
  16. public $_email = '[email protected]';
  17.  
  18. /**
  19.   * Use this method to set a default email for the class.
  20.   * So when the email is sent it's from this email.
  21.   *
  22.   * @param string $email
  23.   */
  24. public function set_default_email($email)
  25. {
  26. $this->_email = $email;
  27. }
  28.  
  29. public function show_default_email()
  30. {
  31. return $this->_email;
  32. }
  33.  
  34. }
  35.  
  36. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.