PDA

View Full Version : my contact page


petra_555
06-07-2007, 06:58 PM
hello!

I am having a awful time getting the coding on my mail.php3 file right. It is a very simple form i made in flash with a .php3 file in dreamweaver. this is the code that is presently there:

<?php
mail("robin@starexposure.com", $subject, $message, "From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
?>

davidj
06-07-2007, 07:05 PM
is that all the code you have regarding the PHP element?

petra_555
06-07-2007, 07:23 PM
hi.

i just attemped a new set of code:
<?
$to = "robin@starexposure.com.com";
$msg = "$name\n\n";
$msg .= "$message\n\n";
mail($to, $subject, $msg, "From: My web site\nReply-To: $email\n");
?>

davidj
06-07-2007, 07:25 PM
and you are testing this on a host that supports php and the mail() function

petra_555
06-07-2007, 07:26 PM
I have currently been using godaddy.com, would that be a question for them?

davidj
06-07-2007, 08:16 PM
just check that the hosting plan you have has PHP support and that you can use the mail() function