Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

dumb question port 25

the mail() function

Moderators: macek, egami, gesf

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
$msg = "Name:t$namen";
$msg .= "Email:t$emailn";
$msg .= "Comments:t$commentsn";
$recipient = "";
$subject = "New Feedback from my site";
$mailheaders = "From:$emailn";
$mailheaders .= "Reply-To:$emailnn";
mail($recipient, $subject, $msg, $mailheaders);

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
New php-forum User
New php-forum User
Posts: 1
Joined: Thu Feb 23, 2012 11:59 am

Re: dumb question port 25

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

$mailed = mail($recipient,$subject,$msg,$mailheaders);
echo "MAILED RESULTS: $mailed";
User avatar
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.