By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,521 Members | 1,420 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,521 IT Pros & Developers. It's quick & easy.

Software to test mail() function in php

P: 99
Hi guys, I want to know is there any software with that i can test my mail function at any time in my local system. Actually, I m using Wamp and some time I need to test mail() function. As i m working in localserver so i canot test all the function. If you guys have any idea, then please give me site from there i can downloda. Thanks in advance .
Feb 19 '08 #1
Share this Question
Share on Google+
3 Replies


ronverdonk
Expert 2.5K+
P: 4,258
Is is not that difficult to develop your own mail function. Try it and we'll help you along. Otherwise google for free mail software.

Ronald
Feb 19 '08 #2

P: 99
Is is not that difficult to develop your own mail function. Try it and we'll help you along. Otherwise google for free mail software.

Ronald
Firstly I would like thank you for the kind response. I think you didn't get what i am looking for. Ok Let me make you clear, suppose following is my code for mail
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <body>
  3.  
  4. <?php
  5. if (isset($_REQUEST['email']))
  6. //if "email" is filled out, send email
  7.   {
  8.   //send email
  9.   $email = $_REQUEST['email'] ; 
  10.   $subject = $_REQUEST['subject'] ;
  11.   $message = $_REQUEST['message'] ;
  12.   mail( "someone@example.com", "Subject: $subject",
  13.   $message, "From: $email" );
  14.   echo "Thank you for using our mail form";
  15.   }
  16. else
  17. //if "email" is not filled out, display the form
  18.   {
  19.   echo "<form method='post' action='mailform.php'>
  20.   Email: <input name='email' type='text' /><br />
  21.   Subject: <input name='subject' type='text' /><br />
  22.   Message:<br />
  23.   <textarea name='message' rows='15' cols='40'>
  24.   </textarea><br />
  25.   <input type='submit' />
  26.   </form>";
  27.   }
  28. ?>
  29.  
  30. </body>
  31. </html>
  32.  
Now what i want to do is that i want to check locally whether i will working or not .. As I already mentioned, i m using Wamp, so how can i check it in my local system in absence any kind of mail server. I hope u got the point what i m want to tell. waiting for the response....
Feb 19 '08 #3

P: 1
i just want to know that how can i instal a script in the server.
Feb 5 '09 #4

Post your reply

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