email form w/ php does not send email

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
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

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

1) register globals = off;
PHP code

Code: Select all

$ToName = "Isabel Staicut";
$ToEmail = "";
$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");

2) mail function denied.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests