Jump to content

Problems with PHP Classes


Auriga

Recommended Posts

Hey!

I'd like to use a special php class that will make it easier to send mail. I've downloaded the class from

http://www.phpguru.org/static/mime.mail.html

However, it seems that i cannot use it in my project for some reason. I get an error on line 30:

<?php
/**
* This file is part of the htmlMimeMail5 package (http://www.phpguru.org/)
*
* htmlMimeMail5 is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* htmlMimeMail5 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with htmlMimeMail5; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*
* © Copyright 2005 Richard Heyes
*/

require_once(dirname(__FILE__) . '/mimePart.php');

class htmlMimeMail5
{
    /**
    * The html part of the message
    * @var string
    */
    private $html;  <--- here the error will come


It appears that the compiler has some trouble with the private directive?

My question: do i need to have something installed to use this kind of class (something like PHP Pear or so)? Or is there another problem with it?

Thank you!

Link to comment
https://forums.phpfreaks.com/topic/34535-problems-with-php-classes/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.