0

Hi, this is my first post to the forum.

I am trying to use HTML Mime Mail, a class written by Richard Heyes.

I use the new class in this program:

<?php
    require_once("/htdocs/htmlMimeMail5/htmlMimeMail5.php"); 
    $mail = new htmlMimemail5();
    $mail->setFrom("example@yahoo.com");
    $mail->setReturnPath("example@yahoo.com");
    $mail->setSubject("Test HTML Mime Mail");
    $mail->setText("This is the body of the test e-mail.");
    $mail->send(array("example@hotmail.com"));
?>

But I keep getting this error: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in htmlMimeMail5.php in line 23 On line 23 of the php file I just downloaded, I find this: private $html; I tried to delete that line and then of course I got the same error message, but now for the next line: private $text; I did not introduce any changes in the downloaded file.

Any clue?

Thanks!

Edited by Ezzaral: Added code tags. Please use them to format any code that you post.

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Alberto99
0

I am a newbie at PHP and I have never used any classes before. Maybe I am including the php-file with the new class the wrong way?

Edited by Alberto99: n/a

0

maybe you are using a script designed to work with PHP5 and you are still using PHP4?

0

maybe you are using a script designed to work with PHP5 and you are still using PHP4?

I'll check which PHP-version my web-host is using. It might be 4.

Thanks!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.