Fatal error: Call to undefined function: mail() in... Hallo Leute,
Folgende Fehlermeldung erhalte ich und weis nicht warum. Könnt Ihr mir bitte weiterhelfen? Danke Dieter.
Fatal error: Call to undefined function: mail() in /webserver/members/admin/sendletter.php on line 61
Und hier die datei:
1<? include("../config.inc.php"); ?>
2<html>
3<head>
4<title>Adminbereich</title>
5<SCRIPT language=javascript>
6<!--
7function LmOver(elem, clr)
8{elem.style.backgroundColor = clr;}
9function LmOut(elem, clr)
10{elem.style.backgroundColor = clr;}
11function LmDown(elem, clr)
12{elem.style.backgroundColor = clr;}
13//-->
14</SCRIPT>
15<style>
16<!--
17a:link { text-decoration: none }
18a:hover { text-decoration: underline }
19a:active { text-decoration: none }
20a:visited { text-decoration: none }
21a.dl:link { color: #ffffff; text-decoration: none }
22a.dl:hover { color: #ffffff; text-decoration: underline }
23a.dl:active { color: #ffffff; text-decoration: none }
24a.dl:visited { color: #ffffff; text-decoration: none }
25-->
26</style>
27</head>
28<body bgcolor="#ffffff">
29<center>
30<table width="60%" bgcolor="#003366" cellspacing="1">
31<tr>
32<td background="table.gif" width="100%"><font face="arial" size="2" 33color="#ffffff">Newsletter</font></td>
34</tr>
35<tr>
36<?
37$goodcount=0;
38$badcount=0;
39$allcount=0;
40$verbindung=mysql_connect($sql_server,$sql_user, $sql_passwort);
41if (!$verbindung)
42echo "Es konnte keine Datenbankverbindung hergestellt werden.";
43mysql_select_db($sql_db, $verbindung);
44$sql = "SELECT * FROM b1gmail_users ORDER BY id ASC";
45$ergebnis = mysql_query($sql, $verbindung);
46while($row = mysql_fetch_object($ergebnis))
47{
48$empf = $row->User;
49$subj = stripslashes($betreff);
50$stxt = stripslashes($text);
51$head = "From:newsletter@mail";
52$resu = mail($empf,$subj,$stxt,$head);
53if ($resu) {
54$goodcount++;
55} else {
56$badcount++;
57}
58$allcount++;
59}
60mysql_free_result($ergebnis);
61mysql_close($verbindung);
62?>
63<td bgcolor="#336699" width="100%" align="center"><font face="arial" size="2" color="#ffffff">
The newsletter has been sended.
Sended: <? echo($goodcount); ?>
Not sended: <? echo($badcount); ?>
All: <? echo($allcount); ?>
</font></td>
</tr>
</table>
</center>
</body>
</html> |