User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 426,640 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,571 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting

PHP Sendmail Tutorial

Join Date: Feb 2007
Posts: 1
Reputation: Imppy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Imppy Imppy is offline Offline
Newbie Poster

Re: PHP Sendmail Tutorial

  #4  
Feb 17th, 2007
i followed this tutorial and ran into an error with the stated sendmail.php code.. when i send information through the feedback form although i recieved an email and the address of my choice i didnt recieve any email content apart from the subject.

after some research i found out you need to use $_post instead of $_get

here is my code for sendmail.php

<?php 
  $email = $_POST['email'] ;
  $message = $_POST['message'] ;
  
  mail ("imperial@sublime.maantok-ent.com", "Feedback form results", $message, "From: $email") ;
  print "Congratulations your email has been sent";
?>

Imperial
Reply With Quote  
All times are GMT -4. The time now is 12:55 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC