Jump to content

Could someone help me apply this code to my contact.php, im desperate


Recommended Posts

Hi, i really need your help, could anyone show me how to apply : -

 

<?php

// bool mail ( string $to, string $subject, string $message [, string $additional_headers [, string $additional_parameters]] )

mail('nobody@example.com', 'the subject', 'the message', null,

  '-fwebmaster@example.com');

 

?>

 

 

 

to my contact.php code: -

 

 

<?php

 

    $your_company = $_GET['company'];

    $your_name = $_GET['name'];

    $your_phone = $_GET['phone'];

    $your_email = $_GET['email'];

    $your_message = $_GET['message'];

   

    $recipient_email = "info@darkiconstudios.com";

   

$subject = "from " . $your_email;

$headers = "From: " . $your_name . " <" . $your_email . ">\n";

    $headers .= 'Content-type: text/html; charset=iso-8859-1';

   

    $content = "<html><head><title>Contact letter</title></head><body><br>";

    $content .= "Company: <b>" . $your_company . "</b><br>";

    $content .= "Name: <b>" . $your_name . "</b><br>";

    $content .= "Phone: <b>" . $your_phone . "</b><br>";

    $content .= "E-mail: <b>" . $your_email . "</b><br><hr><br>";

    $content .= $your_message;

    $content .= "<br></body></html>";

 

  mail($recipient_email,$subject,$content,$headers);

 

?>

<html>

    <body bgcolor="#282E2C">

        <div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold">

            Your message was sent. Thank you.

        </div>

    </body>

</html>

<script>resizeTo(300, 300)</script>

 

 

 

 

 

 

 

I have no idea what im doing, i dont want to change anything because i know i'll cause myself even more problems. If someone could rewrite the contact.php code above with the new code in it, id be forever grateful. the email address im trying to apply is 'info@darkiconstudios.com'

 

 

Many, many thanxs, Lex. ;D

 

 

no i dont think so. Its a flash template im editting. Ive managed to edit the contact form on that and get it working, but for some reason, when i click submit, it says 'thankyou, your message was sent' but in recieve no mail in my inbox when i check.

 

many thanxs

i dont, im trying to figure out why im not being sent messages. Ive manged to get the contact form working, i fill it out, ive managed to get the contact.php error less but for some reason when i now visit my website online, fill out the contact form with another of my address and select sumbit, it says 'thankyou your message was sent' but i dont ever recieve any messages in my email inbox.

 

Ive tried everything to get it working, but these messages jsut get lost in space. im desperate. please help!  :'(

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.