tak jak w temacie
Zastanawia mnie czy mogę wysyłać maile nie posiadająć własnego serwera pocztowego a wykorzystać już istniejące?

znalazłem taki skrypt:
<?php
class eMail {
var $to;
var $subject;
var $content;
var $headers;
var $marker;
var $type;
var $xMailer = "iGol Mail";
function eMail($type = "1", $from = "test<test@ktenbit.pl>", $replyto = "test <test@ktenbit.pl>")
{
$this->type = $type;
$this->headers .= "From: " . $from . "n";
$this->headers .= "Reply-to: " . $replyto . "n";
$this->headers .= "X-Mailer: " . $this->xMailer . "n";
$this->headers .= "MIME-Version: 1.0n";
if ($type == 1) { // text/plain
$this->headers .= "Content-Type: text/plain; charset=iso-8859-2n";
} else {
$this->headers .= "Content-Type: multipart/mixed;n";
$this->headers .= "tboundary="___" . $this->marker . "=="nn";
$this->content = "--___" . $this->marker . "==n";
$this->content .= "Content-Type: text/plain; charset="iso-8859-2"n";
$this->content .= "Content-Transfer-Encoding: 8bitnn";
}
}
function eMailAttachment($mimeType, $fileName, $data)
{
if ($this->type != 1) {
$this->content .= "nn--___" . $this->marker . "==n";
$this->content .= "Content-Type: " . $mimeType . "; name="" . $fileName . ""n";
$this->content .= "Content-Transfer-Encoding: base64n";
$this->content .= "Content-Disposition: attachment; filename="" . $fileName . ""nn";
}
}
function eMailSend($to)
{
if ($this->type != 1) {
$this->content .= "--___" . $this->marker . "==--nn"; // close marker
}
mail ($to, $this->subject, $this->content, $this->headers); }
function eMailContent($subject, $content)
{
$this->subject = $subject;
$this->content .= $content;
}
}
?>
niestety on nie działa działa i nie wiem jak to rozwiązać ;(