PDA

View Full Version : Flash and PHP email issue


JWHP
5-10-03, 12:23 AM
Howdie Designers,
I am new to powweb and am trying to use a flash interface with php to send a simple form to my email address instead of using the "geturl" method in Flash. I have never been hosted by a site with more than a root directory so I feel as though I don't know where to start. I have poked around in the FAQs and have looked through some threads to no avail. I guess the question I have is:
does the php doc with the send mail code have to be in a certain directory, and what version of php does powweb use? Is there any other feedback or sights anybody could recommend.
The code in my php doc is:

<?php
mail("john@peacocknewmediainnovations.com", $subject,$phone,$message,$email, "From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
?>
the doc is saved as mail.php3 and is one line.

Thanks for any feedback,
JWHP

Pig
5-10-03, 02:38 PM
You can put a mail() script in any php page, in any folder you want. It does not matter. However, your mail() script is incorrect. Check out mail in the function on php.net.

You have a variable called $phone. If you want to make $phone part of the message body, then you need to add it on to the body variable:

$message = $phone . "\n\n" . $message;

JWHP
5-10-03, 04:36 PM
Thanks alot I appreciate your reply

Pig
5-11-03, 12:12 AM
np