email form w/ php does not send email

General discussions related to php

Moderators: macek, egami, gesf

User avatar
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Re: email form w/ php does not send email

Postby Oleg Butuzov » Wed Dec 25, 2002 12:51 am

1) register globals = off;
PHP code

Code: Select all

<?
$ToName = "Isabel Staicut";
$ToEmail = "staicut@grinnell.edu";
$ToSubject = "EMAIL FROM MY WEBSITE";
$EmailBody = "Sent By: $_POST[Name]\nSender's Email: $_POST[Email]\n\nMessage Sent:\n $_POST[ToComments]\n";
mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$_POST['name']." <".$_POST['email'].">");
?>


action script code same

Code: Select all

on (release, ) {
loadVariablesNum("email_form.php", "0", "POST");
gotoAndStop(8);
}


2) mail function denied.

Return to “PHP General”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest