Can you take a look at this:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
$emai=$_REQUEST['txtemai'];
$subj=$_REQUEST['txtsubj'];
$mess=$_REQUEST['txtmess'];
if (@mail($emai,$subj,$mess)) {
echo('<p>Mail sent successfully.</p>');
} else {
echo('<p>Mail could not be sent.</p>');
}
?>
</body>
</html>
I keep on getting the else statements.
Here's the code from the form page this email page works with:
<form method="post" action="Emailed.php">
<input name="txtemai" type="text" id="textfield" size="75" />
</p>
<p> Subject: </p>
<p>
<input name="txtsubj" type="text" id="textfield" size="75" />
</p>
<p>Message:
<textarea name="txtmess" cols="87" rows="15" id="textarea"></textarea>
<input name="button" id="button" type="submit" value="Send" />
</form>
</p>
Here is my php.ini in the mail portion of it:
[mail function]
; For Win32 only.
SMTP = smtp.va.com
smtp_port = 25
; For Win32 only.
sendmail_from = Admin@va.com
I am using Apache 2.2.8 and Win XP Pro SP2
Can anyone find a solution why I can't send emails to my test address in yahoo.com?