setHeaders(); mail($this->to, $this->site['display_name'] . ' - ' . $this->subject, $this->body, $this->headers,'-f' . $this->from); return true; } public function setBody($message){ $this->body = $message . "

Med vennlig hilsen,
".$this->site['display_name']."

Ikke send meldinger til denne e-postadressen. Svar på denne meldingen leses og besvares ikke. "; } public function setHeaders(){ $this->from = "ikke_svar@" . $this->site['prefix']. ".no"; $this->headers = 'Precedence: bulk' . "\n". 'MIME-Version: 1.0' . "\n". 'Content-Type: text/html; charset=' . $this->charset . "\n". 'Content-Transfer-Encoding: 8bit' . "\n". 'Reply-To:' . $this->reply_to . "\n". 'From: '. $this->from . "\n"; } public function setBCC($bcc){ $this->bcc = $bcc; } public function setCC($cc){ $this->cc = $cc; } public function setTo($to){ $this->to = $to; } public function setFrom($from){ $this->from = $from; } public function setSubject($subject){ $this->subject = $subject; } public function setSite($site){ $this->site = $site; } } ?>