this is some part in my AJAX:
-
-
var params = "sender=" + encodeURIComponent(document.iform.sender.value)+
-
"&email=" + encodeURIComponent(document.iform.email.value)+
-
"&subject=" + encodeURIComponent(document.iform.subject.value)+
-
"&text=" + encodeURIComponent(document.iform.text.value);
-
-
-
xmlHttp=GetXmlHttpObject()
-
var url="process.php"
-
xmlHttp.onreadystatechange=myResult;
-
open("POST",url,true)
-
xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
-
xmlHttp.send(params)
-
-
-
-
AND THIS IS MY PHP PAGE TO SEND MAIL
[php]<?php
$recipient = 'geisha@hotmail.com';
$params = $_POST['params'];
$subject = $_POST['subject'];
$from = $_POST['sender']; // variable SENDER from ajax
$email = $_POST['email'];
$text= $_POST['text'];
$ip = $_SERVER['REMOTE_ADDR'];
$msg = "From: $from\n Email: $email \n IP Adrress :$ip \n\n Message: $text";
mail($recipient, $subject, $msg);
?>[/php]
Everything worked good in hotmail, gmail, yahoo But not in web-mail or POP3 program.
Please tell me what should i do.
thanks a lot
Alex