Bez
July 24, 2003, 5:39pm
1
Hi Guys,
I have created an email from following a tutorial, But the tutrial in the end turned out to use CGI.
So, Not i have the form set up, With the variables set, Is there a way of making it a php email form?
If yes, Can anybody provide me with a php script which i can use to interact with the form to send the email?
Regards
system
July 24, 2003, 5:59pm
2
<?php
$to="me@me.com";
$subject="Contact Form.";
$message=$_POST['message'];
mail($to,$subject,$message);
?>
The above script sends an email to the adress in $to, with the body $message, and the subject $subject.
An example flash AS script that would work with the above PHP:
[AS]
myButton_btn.onRelease = function(){
mail_lv.message=myText_txt.text;
mail_lv.send(“www.yourserver.com/mail.php ”);
}
[/AS]
system
July 24, 2003, 6:23pm
3
I cant seem to get this to work,
If i upload my php file and my fla will you take a look at it for me?
system
July 24, 2003, 6:41pm
5
Yeah, you can do that, and I’ll check it for you.
system
July 24, 2003, 7:20pm
7
It should be working now.
Unfortunately, I can’t test it because I haven’t got a working mail server at the moment, but try it wherever you can.
You’ll have to change your email again in the form.php script.
The main reason it wasn’t working was that you had forgotten to change some stuff.
system
July 24, 2003, 7:22pm
9
Hi Nj,
You gonna upload the files?
And, For my own knowledge, What hadn’t i changed that needed to be changed?
P.s
Do you have Aol or Msn?
system
July 24, 2003, 7:24pm
10
I have msn
MSN: njs12345 -at- hotmail.com
system
July 24, 2003, 7:29pm
11
Hi Nj,
I have uploaded the files you provided me with, And they still do not work.
Do i need to chmod the php file?
Also, When i pressed the submit button, A new browser opens which contains the form.php file.
system
July 25, 2003, 3:32pm
12
In case anyone was interested in this, the files that I gave to Bez did work. His host wasn’t set up to send email.
system
July 25, 2003, 4:43pm
14
Yep, It sure does
My other host does though, So its ok
system
July 25, 2003, 9:32pm
15
if often worries me that web hosting company’s don’t have their server configured to send email, i mean isn’t that a a neccessity?( i know i spelled that wrong :0)
system
July 25, 2003, 9:52pm
16
Yeah, I know what you mean.
You pay for something, So you expect what you are paying for.
Im going to contact them and ask them if they will set it up