| | |
FeedBack Form in php
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
Hi
I have issue regarding the mail, which is not sending to my mail account.
1. <html>
2. <body>
3. <?php
4. if (isset($_POST['email']))
5. //if "email" is filled out, send email
6. {
7. //send email
8. $email = $_POST['email'] ;
9. $subject = $_POST['subject'] ;
10. $message = $_POST['message'] ;
11. mail( "yourname@example.com", "Subject: $subject",
12. $message, "From: $email" );
13. echo "Thank you for using our mail form";
14. }
15. else
16. //if "email" is not filled out, display the form
17. {
18. echo "<form method='post' action='phpmail.php'>
19. Email: <input name='email' type='text' /><br />
20. Subject: <input name='subject' type='text' /><br />
21. Message:<br />
22. <textarea name='message' rows='15' cols='40'>
23. </textarea><br />
24. <input type='submit' />
25. </form>";
26. }
27. ?></body>
28. </html>
plz anybody can figure it out why my mail is not receiving in my mail account.
I have issue regarding the mail, which is not sending to my mail account.
1. <html>
2. <body>
3. <?php
4. if (isset($_POST['email']))
5. //if "email" is filled out, send email
6. {
7. //send email
8. $email = $_POST['email'] ;
9. $subject = $_POST['subject'] ;
10. $message = $_POST['message'] ;
11. mail( "yourname@example.com", "Subject: $subject",
12. $message, "From: $email" );
13. echo "Thank you for using our mail form";
14. }
15. else
16. //if "email" is not filled out, display the form
17. {
18. echo "<form method='post' action='phpmail.php'>
19. Email: <input name='email' type='text' /><br />
20. Subject: <input name='subject' type='text' /><br />
21. Message:<br />
22. <textarea name='message' rows='15' cols='40'>
23. </textarea><br />
24. <input type='submit' />
25. </form>";
26. }
27. ?></body>
28. </html>
plz anybody can figure it out why my mail is not receiving in my mail account.
•
•
Join Date: Nov 2007
Posts: 183
Reputation:
Solved Threads: 5
PHP Syntax (Toggle Plain Text)
$email = $_REQUEST['email'] ; $subject = $_REQUEST['subject'] ; $message = $_REQUEST['message'] ; mail( "yourname@example.com", $subject,$message, $email"); echo "Thank you for using our mail form";
![]() |
Other Threads in the PHP Forum
- Previous Thread: Third Quotation Type
- Next Thread: un-include-in a file?
| Thread Tools | Search this Thread |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube






