473,654 Members | 3,184 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

10 New Member
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 2011
Dormilich
8,658 Recognized Expert Moderator Expert
you don’t have any PHP code (posted) that is sending an email.
Feb 18 '11 #2
clain
79 New Member
you should use a PHP mail() or sendmail function to send mail. Both are not present in this this code.
Feb 19 '11 #3
NetDynamic
27 New Member
mail($_POST['email'],"Subject text Here",$msg);

done..
Feb 19 '11 #4
NetDynamic
27 New Member
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
2307
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 working with it for a few days (and nights), it finally came to my attention that it will only send 'To, From, Subject, Body' information and not
1
2290
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 web page file to my hosting company, which is running Windows 2000, and I get this error message: CDO.Message.1 error '80040220' The "SendUsing" configuration value is invalid. /mailplay.asp, line 63
1
4477
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 current window. I have a cgi script provided by my web host to send the contents of the form through email but they only show me how to use the cgi script to send email through the submit event of the form. ie. <form name="downloadform"...
9
3142
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 other page, or is there something else like a stream which will be like a file. I am attempting to get a way from writing out a file and then having to give the page that I am posting to the file name. Instead I would like to just from asp.net...
2
6106
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 various examples, and they're all about automating email within vb, I only want to automate 1/2 the process. Thanks for help. Eric
1
2059
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 MS Word and Outlook DB - SQL Server
1
2251
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
5630
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 support .asp,.aspx files, it supports PHP files, I'm searching in JavaScript ,but not found any matter, I'don't Know PHP.I'm having lot of pressure of higer officials.Please help me on this.
5
2358
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 name="safe_access"> <option value="0"></option> <option value="yes">Yes</option> <option value="no">No</option>
2
2884
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 name, phone,city, email, mail name=Request.Form("name") phone=Request.Form("phone") city=Request.Form("city") email=Request.Form("email") Response.Write("Name: " & name & "<br />")
0
8376
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8489
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8594
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7307
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2716
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.