PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
hi everybody;
I have a question, I want to send an e-mail by php, the is working but not send I could not find my error if you, tell answer me pls..
mail.htm
[syntax="html"]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>mail</title>
</head>
<form method="post" actionfiltered="sendmail.php">
<td>To:<input name="email" type="text" /></br></br></td>
<!-- Sender: <input name="email" type="text" /></br></br> -->
<td> Subject: </br>
<textarea name="subject" cols="15" rows="2"> </textarea></br></td>
<td> Message: </br>
<textarea name="message" rows="15" cols="40">
</textarea><br /></td>
<input type="submit" />
</form>
</html>
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
if I take @ I recieve an error message like as:
mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in c:\inetpub\wwwroot\sendmail.php on line 16
mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:\inetpub\wwwroot\sendmail.php on line 17
yes smtp server is running on localhost. but I didnt understand wht it gives an error like as. to check could you tell me what smtp details sould I put pls??
If its on your machine then localhost port 25 should work if you have left all your SMTP configuration as default. Try and telnet localhost 25 , to make sure its really running.