Sto provando un'applicazione per creare una mailing list. Ho scaricato degli script on-line ed è andato tutto abbastanza bene fino allo script di invio, class.SimpleMail.php:
<?php
class SimpleMail {
public $to = NULL;
public $cc = NULL;
public $bcc = NULL;
public $from = NULL;
public $subject = '';
public $body = '';
public $htmlbody = '';
public $send_text = TRUE;
public $send_html = FALSE;
private $message = '';
private $headers = '';
public function send($to = NULL,
$subject = NULL,
$message = NULL,
$headers = NULL) {
if (func_num_args() >= 3) {
$this->to = $to;
$this->subject = $subject;
$this->message = $message;
if ($headers) {
$this->headers = $headers;
}
} else {
eccetera........
che mi segnala questo errore qui:
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /class.SimpleMail.php on line 3
Qualcuno mi può dare una mano? O suggerire una soluzione più semplice?
![]()