hi everyone,
I have a similar problem to this topic:
http://forums.contribs.org/index.php/topic,22103.0.html(I would have answered this but somehow it is not answerable..)
The php mail-function doesn't work, and no errors are displayed.
Report php-errors is activated, but if I click on "send" it simply clears up all input fields and no error message is shown, not in the browser and not in the messages.log.
Port 25 is forwarded, so what can it be ?
the following php skript was used (I got it from a php tutorial, so it should work):
<?php
if ( isset( $_REQUEST["do"] ) && $_REQUEST["do"] == "send" )
{
// Variablen auslesen
$to = $_REQUEST["form_to"];
$from = $_REQUEST["form_from"];
$subject = $_REQUEST["form_subject"];
$text = $_REQUEST["form_text"];
$header = "From: " . $from;
// Pflichtfelder
if ( !isset( $to ) || $to = "" )
{
die("Bitte geben Sie einen Adressaten an!");
}
if ( !isset( $subject ) || $subject = "" )
{
die("Bitte geben Sie ein Betreff an!");
}
$status = mail($to, $subject, $text, $header);
if ( ! $status )
{
die("Konnte die Email nicht versenden");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 6">
<title>PHP-Emailer</title>
<style type="text/css" media="screen"><!--
body { font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular }
--></style>
</head>
<body bgcolor="#ffffff">
<form action="<?php echo $_REQUEST["PHP_SELF"]; ?>" method="POST" name="FormName">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="left" valign="top" width="84">An</td>
<td align="left" valign="top" width="22"> </td>
<td align="left" valign="top" width="401"><input type="text" name="form_to" size="53" border="0"></td>
</tr>
<tr>
<td align="left" valign="top" width="84">Von</td>
<td align="left" valign="top" width="22"> </td>
<td align="left" valign="top" width="401"><input type="text" name="form_from" size="53" border="0"></td>
</tr>
<tr>
<td align="left" valign="top" width="84"> </td>
<td align="left" valign="top" width="22"> </td>
<td align="left" valign="top" width="401"> </td>
</tr>
<tr>
<td align="left" valign="top" width="84">Subject</td>
<td align="left" valign="top" width="22"> </td>
<td align="left" valign="top" width="401"><input type="text" name="form_subject" size="53" border="0"></td>
</tr>
<tr>
<td align="left" valign="top" width="84"> </td>
<td align="left" valign="top" width="22"> </td>
<td align="left" valign="top" width="401"> </td>
</tr>
<tr>
<td align="left" valign="top" width="84">Body</td>
<td align="left" valign="top" width="22"> </td>
<td align="left" valign="top" width="401"><textarea name="form_text" rows="7" cols="53"></textarea></td>
</tr>
<tr>
<td align="left" valign="top" width="84"> </td>
<td align="left" valign="top" width="22"> </td>
<td align="left" valign="top" width="401"> </td>
</tr>
<tr>
<td align="left" valign="top" width="84"></td>
<td align="left" valign="top" width="22"><input type="hidden" name="do" value="send"></td>
<td align="left" valign="top" width="401"><input type="submit" name="submitButtonName" value="senden" border="0"></td>
</tr>
</table>
</form>
<p></p>
</body>
</html>