PHP Email Problems
Posted: Fri Oct 06, 2006 2:07 pm
Everah | Please use
Database is working fine, but I thought I would include it for kicks:
Let me know what information you need to diagnose the problem.
Thanks
Everah | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
This is probably a really stupid question that should be answered easily. I have been scouring Tutorials and How Tos for days now and have been reluctant to submit a new post it in any forums for fear of someone having a one sentence answer, then continuing on for pages on how they pwned me and i'm such a noob.
Anyways here goes. I have created an online form for an application and the form works fine, it has a subsequent page that shows what information they have entered and it stores it all into a database quite nicely. My problem is that it will not email.
Here is some of the relevant code for the email:Code: Select all
$message = stripslashes($message);
$mail_path = "/usr/sbin/sendmail -t" ;
mail("info@example.com","Application Form .$firstname. .$lastname.",$message,"From: $email");
$to_put .= $FirstName."|".$LastName."|".$MiddleI."|".$Address."|".$Suite."|".$City."|".$State."|".$ZipCode."|".$Email";Code: Select all
$make=fopen("admin/data.dat","a");
$to_put="";
$to_put .= $FirstName."|".$LastName."|".$MiddleI."|".$Address."|".$Suite."|".$City."|".$State."|".$ZipCode."|".$Email";
fwrite($make,$to_put);Thanks
Everah | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]