dumb question port 25

the mail() function

Moderators: macek, egami, gesf

erice
New php-forum User
New php-forum User
Posts: 1
Joined: Thu Feb 23, 2012 11:59 am

dumb question port 25

Postby erice » Thu Feb 23, 2012 12:54 pm

Just looking for it to be dumbed down
I have a basic contact forum
<p>
<?php
$msg = "Name:t$namen";
$msg .= "Email:t$emailn";
$msg .= "Comments:t$commentsn";
$recipient = "erice@mydomain.com";
$subject = "New Feedback from my site";
$mailheaders = "From:$emailn";
$mailheaders .= "Reply-To:$emailnn";
mail($recipient, $subject, $msg, $mailheaders);
header("Location: http://mydomain.com/contacttest/thankyou.html");
?>
</p>

put can not get it to go
I get the port 25 message
how do you redirect it not to use port 25
is it the hosting company blocking it or is it the internet provider "comcast" blocking it

User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: dumb question port 25

Postby egami » Fri Feb 24, 2012 10:29 am

$mailed = mail($recipient,$subject,$msg,$mailheaders);
echo "MAILED RESULTS: $mailed";


Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 1 guest

cron