954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

php sending mail via smtp external site

<?

include ('/config_inc.php');

session_start();

  
$fname = $_POST['fname'];
$lname = $_POST['lname'];
$number = $_POST['number'];

$subj = "$number";
    $msg = "First:  $fname\ Last: $lname\ NUMBER: $number\";


echo "<form method=\"post\" name=\"send1\" action=\"\send.php\">\n";
echo "<input type=\"hidden\" name=\"name\" value=\"Member\">\n";
echo "<input type=\"hidden\" name=\"email\" value=\"new@local.com\">\n";
echo "<input type=\"hidden\" name=\"subject\" value=\"$subj\">\n";
echo "<input type=\"hidden\" name=\"message\" value=\"$msg\">\n";


$nrap=0;
 



?>


<SCRIPT language=JavaScript type=text/javascript>
function actionSubmit() {
    document.send1.submit();
}
</SCRIPT>

<SCRIPT language=JavaScript type=text/javascript>
setTimeout('actionSubmit()',1500);
</SCRIPT>
</form>

ok im trying to grab data from another form that submits here and this script grabs the data and submits it to another php sendmail script which has my smtp on it on another server... the problem im running into is everything works but it doesnt send the values of the form


it sends everything but the values and when i look at html all the values are there in the hidden forms im doing this so i dont have smtp on my domain hosting but on another server any help would be apreciated thanks!!

neons001
Newbie Poster
1 post since May 2007
Reputation Points: 10
Solved Threads: 0
 

Does your second server (with SMTP) actually allow for SMTP to be send from a different server? Very often this is disabled. So before anyone will try to help you, are you sure this is even possible in your situation?

pritaeas
Posting Expert
Moderator
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You