I want to make an email form with ams8. I read on this forum an old post from 2004 ( on ams5 ) :
for php this code:
<?php
// specify recipient email address
$to="vio_music2009@yahoo.com";
// send our email
mail("$to","$from","$subject","$body");
?>
form ams button on click event:
-- clear error variable
error = 0;
-- Get values from input fields
from = Input.GetText("Input1");
subject = Input.GetText("Input2");
body = Input.GetText("Input3");
-- check for empty fields and deliver errors if needed
if String.Length(from) < 1 then
Dialog.Message("ERROR", "Bla Bla.");
error = 1;
end
if String.Length(subject) < 1 then
Dialog.Message("ERROR", "Bla Bla.");
error = 1;
end
if String.Length(body) < 1 then
Dialog.Message("ERROR", "Bla Bla.");
error = 1;
end
if error~=1 then
-- if no errors exist, send the email now and give a confirmation dialog
HTTP.Submit("your_adress/mail.php", {from=from, subject=subject, body=body}, SUBMITWEB_POST, 20, 80, nil, nil);
Dialog.Message("Thanks", "Bla Bla ");
end
The problem is : all emails received through this application are blank with [No Subject] title. Where I'm wrong? I use 000webhost.com for hosting mail.php. Please help me.

Reply With Quote
