otoz chcialem wyslac maila z moje strony. utworzylem sobie kod i raczej powinien dzialac, jednak nie wysyla maila...
<?php
function send_mail($emailaddress, $emailsubject, $body, $fromaddress){
$eol="r\n";
# Common Headers
$headers .= 'From: MyName<'.$fromaddress.'>'.$eol;
$headers .= 'Reply-To: MyName<'.$fromaddress.'>'.$eol;
$headers .= 'Return-Path: MyName<'.$fromaddress.'>'.$eol;
$headers .= "Message-ID: <".$now." TheSystem@".$_SERVER['SERVER_NAME'].">".$eol;
# Boundry for marking the split & Multitype Headers
$headers .= 'MIME-Version: 1.0'.$eol;
$headers .= "Content-Type: multipart/related; boundary=\"".$mime_boundary."\"".$eol;
$msg = "";
# Setup for text OR html
$msg .= "Content-Type: multipart/alternative".$eol;
# Text Version
$msg .= "--".$mime_boundary.$eol;
$msg .= "Content-Type: text/plain; charset=iso-8859-1".$eol;
$msg .= "Content-Transfer-Encoding: 8bit".$eol;
# HTML Version
$msg .= "--".$mime_boundary.$eol;
$msg .= "Content-Type: text/html; charset=iso-8859-1".$eol;
$msg .= "Content-Transfer-Encoding: 8bit".$eol;
$msg .= $body.$eol.$eol;
# Finished
$msg .= "--".$mime_boundary."--".$eol.$eol;
# SEND THE EMAIL
ini_set(sendmail_from
,$fromaddress); mail($emailaddress, $emailsubject, $msg, $headers); }
# To Email Address
$emailaddress=$email;
# From Email Address
$fromaddress = "mm@mm.pl";
# Message Subject
$emailsubject="Zamowienie zrealizowane.";
# Message Body
$body="Zakupione przez Panstwa produkty zostana wyslane w przeciagu 2 tygodni.</br>
Prosze o potwierdzenie zamowienia";
send_mail($emailaddress, $emailsubject, $body, $fromaddress);
?>
jezeli widzicie gdzie popelnilem blad bylbym wdzieczny za wskazanie
pozdrawiam