473,395 Members | 2,006 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Need Help Figuring out why my customer form will not send email.

10
This form will not send the email to my account and I used other forms to submit emails using examples that I googled but I can't get this form to process the request. Can someone tell me what i'm missing?



my PHP Form:

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <HEAD>
  3. <TITLE>Demetrius's Customer Form</TITLE>
  4.  
  5. </HEAD>
  6. <BODY BGCOLOR="#F6B28F">
  7. <HR>
  8. <H1><FONT FACE="Arial"><FONT COLOR="004E4A">Demetrius's Customer Form</FONT></H1>
  9. <HR>
  10.  
  11. <p>In order to serve you, please tell us your problem:</p>
  12.     <form method="post" action="mycustomeremail.php">
  13.  
  14. <H3>THanks for visiting my customer service site I am so glad that i can serve you. </H3>
  15.  
  16. <BR>Report your issue
  17.  
  18. <fieldset>
  19.     <legend>Send Email</legend>
  20.  
  21. <p>Email: <input type="text" name="email" size="60"></p>
  22.  
  23. <p><label for="subject">Subject:</label><input type="text" id="subject"></p>
  24.  
  25. <p><label for="message">Message:</label><br/>
  26.  
  27. <TEXTAREA  id="message" name="message" rows="10" cols="70" WRAP="hard">
  28. </TEXTAREA>
  29.  
  30.  <p><input type=submit value="Submit"> <input type=reset value="Reset"></p>
  31.  
  32. </FORM>
  33. </BODY>
  34. </HTML>
PHP Script:

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3.   <title>My Customer Email</title>
  4. </head>
  5.   <body>
  6.  
  7.   <?php
  8.   $msg = "Thank you for allowing us to server you.";
  9. $today = date("02/16/2011");
  10. $msg = $msg . "<br/>" . $today;
  11. $name = $_POST["name"];
  12. $email = $_POST["email"];
  13. echo $name . " (" . $email . ")<br /> " . $msg;
  14.  
  15. echo $msg;     //display message
  16.   ?>
  17.  
  18.   </body>
  19. </html>
Feb 17 '11 #1
4 1998
Dormilich
8,658 Expert Mod 8TB
you don’t have any PHP code (posted) that is sending an email.
Feb 18 '11 #2
clain
79
you should use a PHP mail() or sendmail function to send mail. Both are not present in this this code.
Feb 19 '11 #3
mail($_POST['email'],"Subject text Here",$msg);

done..
Feb 19 '11 #4
lol you dont need the [' but ok :)
Feb 19 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Andrew Williams | last post by:
Hi, I have just created a web form that should send its details to an e-mail address. The problem is that I was working on the pretense that CDONTS would suffice my needs. However, after...
1
by: Bruce W.1 | last post by:
I'm new to ASP (but not ASP.NET) and I'm trying to setup a simple ASP web form to send an email to me. So I try this code: http://www.library.unr.edu/subjects/guides/mailplay.asp I upload the...
1
by: mhawkins19 | last post by:
I have a form built and on the onclick event I validate all of the fields and then if the form is ok, on the submit event I run a javascript function to set a cookie and download a file from the...
9
by: eswanson | last post by:
I have a web page I need to post a file plus some other fields to it. How can I do this from a asp.net page. I know I can send individual fields to the other page, but how do I send a file to the...
2
by: Eric Peterson | last post by:
I need to pop up the send email form from Outlook. I also need to populate the to field, but obviously the user will type the message and hit 'SEND'. How can I do this? I've been through...
1
by: John | last post by:
Hi, I have a question to ask in how to send e-mail through a program written by VB.Net with the help of MS Word and Outlook? The platform will be like this: OS - Win 2K Pro Office 2000 with...
1
by: shahnawaz shaikh | last post by:
hi, I want to send email to customer weekly or monthly autometicaly. we fech email id from one table and send email weekly to that customer if his status is weekly and so on.
2
by: Malli mindwave | last post by:
Hi, We are using the yahoowebHostiing service for my company website, In that one screen of the SendComments/FeedBack section is there, I'm basically dot.net develeoper ,but yahoowebhosting not...
5
by: canajien | last post by:
I have a form that stores information in a table, but I also need it to send an email when a specific question, among the many, is answered with no the question is a simple drop box: <select...
2
by: PrabodhanP | last post by:
I want to send form data to email using ASP (post method). I am trying following script but it's not working.Please suggest. Also suggest how to redirect it after pressing submit button. <% Dim...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.