Jump to content

tiptop

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

tiptop's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. yes it shows the thank you page but i dont get any emails
  2. i got this in a tutorial, i know that where its says myemail i have to type my actual email ...this script is not working, i click the submit button but it doesnt email me the info. PLEASE HELP ME, i dont know a thing about php, could someone fix this script please? i dont know what some people mean by i forgot the "s. Thank you for your help, i will be eternally grateful. I need this for my company's web page. <?php /* subject and email variables */ $emailSubject = 'Client Query!'; $webMaster = 'myemail'; /* Gathering data variables */ $emailField = $_POST['email']; $nameField = $_POST['name']; $p_numberField = $_POST['p_number']; $commentsField = $_POST['comments']; $body = <<<EOD <br><hr><br> Email: $emailField <br> Name: $nameField <br> Phone Number: $p_numberField <br> Comments: $commentsField <br> EOD; $headers = "From: $emailField \r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($webMaster, $emailSubject, $body, $headers); /* Results rendered as HTML */ $theResults = <<<EOD <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>untitled</title> <style type="text/css"> <!-- body { background-image: url(background%20links.jpg); } .style1 { font-family: "copperplate Gothic Bold"; color: #51473E; font-size: 36px; } --> </style></head> <body> <p class="style1"> </p> <p class="style1"> </p> <p align="center" class="style1">Thank you for contacting us!</p> <p align="center" class="style1"> your email will be answered within 24 hours</p> </body> </html> EOD; echo "$theResults"; ?>
  3. im not really that good in php, i got this script from a tutorial, it gets my submit button to send me an email. I have no idea what you guys mean with my "s could you please help me? maybe fix this script? i would be so grateful
  4. <?php /* subject and email variables */ $emailSubject = 'Client Query!'; $webMaster = 'myemail'; /* Gathering data variables */ $emailField = $_POST['email']; $nameField = $_POST['name']; $p_numberField = $_POST['p_number']; $commentsField = $_POST['comments']; $body = <<<EOD <br><hr><br> Email: $emailField <br> Name: $nameField <br> Phone Number: $p_numberField <br> Comments: $commentsField <br> EOD; $headers = "From: $emailField \r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($webMaster, $emailSubject, $body, $headers); /* Results rendered as HTML */ $theResults = <<<EOD <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>untitled</title> <style type="text/css"> <!-- body { background-image: url(background%20links.jpg); } .style1 { font-family: "copperplate Gothic Bold"; color: #51473E; font-size: 36px; } --> </style></head> <body> <p class="style1"> </p> <p class="style1"> </p> <p align="center" class="style1">Thank you for contacting us!</p> <p align="center" class="style1"> your email will be answered within 24 hours</p> </body> </html> EOD; echo "$theResults"; ?>
×
×
  • 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.