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 .
Software to test mail() function in php
Collapse
X
-
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 mailOriginally posted by ronverdonkIs 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
[code=php]
<html>
<body>
<?php
if (isset($_REQUES T['email']))
//if "email" is filled out, send email
{
//send email
$email = $_REQUEST['email'] ;
$subject = $_REQUEST['subject'] ;
$message = $_REQUEST['message'] ;
mail( "someone@exampl e.com", "Subject: $subject",
$message, "From: $email" );
echo "Thank you for using our mail form";
}
else
//if "email" is not filled out, display the form
{
echo "<form method='post' action='mailfor m.php'>
Email: <input name='email' type='text' /><br />
Subject: <input name='subject' type='text' /><br />
Message:<br />
<textarea name='message' rows='15' cols='40'>
</textarea><br />
<input type='submit' />
</form>";
}
?>
</body>
</html>
[/code]
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....Comment
Comment