Jello everyone!
I have three variables that need to be sent to the to the PHP code (below)
The first is sTo = me_result this represents an end users email and needs to be sent to the PHPs $to where there is now ="[email protected]".
The second is sSubject = "Your Password you requested" you can guess where that goes (subject)
The third is sMessage = "Your password is:" ..pass_result again this goes in the message area.
The code in AMS goes like this:
result = HTTP.Submit("http://www.mywebsite.com/passemail.php", {to=sTo, subject=sSubject, message=sMessage}, SUBMITWEB_POST, 20, 80, nil, nil);
Can anyone help me get this to work?
<?php
$to="[email protected]";
if (isset($_REQUEST['message']))
{
//$message = wordwrap($_REQUEST['message'], 70, "<br>\n", TRUE);
$message =$_REQUEST['message'];
if (isset($_REQUEST['subject']))
{
$subject = $_REQUEST['subject'];
mail ("$to","$subject","$message","From: Your Password Protector");
echo "success";
}
else
echo "no subject";
}
else
{
echo "no message";
}
exit;
?>
I have three variables that need to be sent to the to the PHP code (below)
The first is sTo = me_result this represents an end users email and needs to be sent to the PHPs $to where there is now ="[email protected]".
The second is sSubject = "Your Password you requested" you can guess where that goes (subject)
The third is sMessage = "Your password is:" ..pass_result again this goes in the message area.
The code in AMS goes like this:
result = HTTP.Submit("http://www.mywebsite.com/passemail.php", {to=sTo, subject=sSubject, message=sMessage}, SUBMITWEB_POST, 20, 80, nil, nil);
Can anyone help me get this to work?
<?php
$to="[email protected]";
if (isset($_REQUEST['message']))
{
//$message = wordwrap($_REQUEST['message'], 70, "<br>\n", TRUE);
$message =$_REQUEST['message'];
if (isset($_REQUEST['subject']))
{
$subject = $_REQUEST['subject'];
mail ("$to","$subject","$message","From: Your Password Protector");
echo "success";
}
else
echo "no subject";
}
else
{
echo "no message";
}
exit;
?>
Comment