Help with php smtp port 25?
im attempting to creat php script this sends released an e-mail, i do assume that my script is definitely correct:
shape, td, th
shade:#00CC00;
mail2.php:
shape, td, th
shade:#00CC00;
$to = $_POST”email”;
$subject = $_POST”subject”;
$message = $_POST”message”;
$from = $_POST”from”;
$headers = “From:$from”;
$i=0;
$amount = $_POST”amount”;
do
mail($to, $subject, $message, $headers);
$i++;
echo “Sent $i Messages To $to
“;
while ($i<$amount);
>
like we said anything looks as well as works like it should except next time i send that i understand this error:
Word of caution:mail() operate.mail:Still did not connect for you to mailserver on “localhost” interface 25, examine your “SMTP” in addition to “smtp_port” setting up in php.ini or even use ini_set() within C:\xampp\htdocs\mail2.php on the web 20
i assumed it was due to the fact that smtp(port25) had not been forwarded throughout my router, so post went in advance and did that inbound and outgoing the choices be protected, nothing evolved.
exact same error
if it helps in any way, when my spouse and i ping this ip instant messaging given for that forwarded opening 25 absolutely no packets tend to be lost but i obtain reply from your address regarding my forwarded http port(80) (443) and also (8080) rather than my smtp that is certainly only one particular bit different than my own smtp:your reply declares “destination coordinator unreachable.
every help is actually appreciated, ive tried using google however to simply no avail
I am not a PHP male so this really is only some sort of guess.
Your error to my opinion looks similar to its below:
“localhost” interface 25
Your personal machine is certainly not setup with SMTP functions.The router offers nothing related to it.Whenever you run a person’s program with your local machine it fails when the item tries to access SMTP companies.
To find out my concept try uploading your file to some server and then test them.
I didn’t consider PHP wanted that advice…it have a email component that handled individuals settings Around.NET we must.
Leave a Reply
You must be logged in to post a comment.