Czesc,
Mam problem z tymi serwerami. NIC nie przychodzi na email tj nawet email nie przychodzi. Kiedy wysylam na np. onet. interie, gmail wsio jest ok a tutaj nawet ustawienie filtrow nie pomaga. Dodalem adres spod ktorego przesylam email (FROM) i tez nic. Wiem ze kod jest poprawny zreszta dla pewnosci wstawilem prosty przyklad f. mail() do innego pliku i wywolalem. Tez nic. Juz nie wiem co mam z tym robic a musze miec to pod hotmail i yahoo. Ktos pomoze

?
Zaznaczam że nie ma listów w spamie czy junk email. Nic, totalne zero.
<?
$o = mail("xxx@hotmail.com","temat","tresc");
if($o)
{
}else{
}
?>
Za każdym razem zwraca true a emaila jak nie bylo tak nie ma.
edit:
Znalazlem teraz taki przyklad i tez nic nie dochodzi. Przykld z manuala gdzie pisze ze dziala na hotmail rowniez :/ Na gmail dochodzi.
<?php
$to = "adresat@hotmail.com";
$email = "odpokgo@onet.pl";
$name = $_POST['name'];
$subject = $_POST['subject'];
$comment = $_POST['message'];
$HTMLMessage =nl2br($comment);
$boundary1 =rand(0,9)."-" .rand(10000000000,9999999999)."-" .rand(10000000000,9999999999)."=:" $boundary2 =rand(0,9)."-".rand(10000000000,9999999999)."-" .rand(10000000000,9999999999)."=:"
for($i=0; $i < count($_FILES['youfile']['name']); $i++){ !empty($_FILES['fileatt']['size'][$i]) && !empty($_FILES['fileatt']['name'][$i])){
$attach ='yes';
$end ='';
$handle =fopen($_FILES['fileatt']['tmp_name'][$i], 'rb'); $f_contents =fread($handle, $_FILES['fileatt']['size'][$i]);
$ftype[] =$_FILES['fileatt']['type'][$i];
$fname[] =$_FILES['fileatt']['name'][$i];
}
}
/***************************************************************
Creating Email: Headers, BODY
1- HTML Email WIthout Attachment!! <<-------- H T M L ---------
***************************************************************/
#---->Headers Part
$Headers =<<<AKAM
From: $FromName <$FromEmail>
Reply-To: $FromEmail
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="$boundary1"
AKAM;
#---->BODY Part
$Body =<<<AKAM
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="$boundary1"
This is a multi-part message in MIME format.
--$boundary1
Content-Type: text/plain;
charset="windows-1256"
Content-Transfer-Encoding: quoted-printable
$TextMessage
--$boundary1
Content-Type: text/html;
charset="windows-1256"
Content-Transfer-Encoding: quoted-printable
$HTMLMessage
--$boundary1--
AKAM;
/***************************************************************
2- HTML Email WIth Multiple Attachment <<----- Attachment ------
***************************************************************/
if($attach=='yes') {
$attachments='';
$Headers =<<<AKAM
From: $FromName <$FromEmail>
Reply-To: $FromEmail
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="$boundary1"
AKAM;
for($j=0;$j<count($ftype); $j++){
$attachments.=<<<ATTA
--$boundary1
Content-Type: $ftype[$j];
name="$fname[$i]"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="$fname[$j]"
$attachment[$j]
ATTA;
}
$Body =<<<AKAM
This is a multi-part message in MIME format.
--$boundary1
Content-Type: multipart/alternative;
boundary="$boundary2"
--$boundary2
Content-Type: text/plain;
charset="windows-1256"
Content-Transfer-Encoding: quoted-printable
$TextMessage
--$boundary2
Content-Type: text/html;
charset="windows-1256"
Content-Transfer-Encoding: quoted-printable
$HTMLMessage
--$boundary2--
$attachments
--$boundary1--
AKAM;
}
/***************************************************************
Sending Email
***************************************************************/
$ok=mail($To, $Subject, $Body, $Headers); echo $ok?
"<h1> Mail Sent</h1>":"<h1> Mail not SEND</h1>"; ?>
Ten post edytował TwojPan 14.04.2014, 07:45:30