Pagina 1 din 1
Warning: mail
Scris: 10-Ian-2008, 07:49:09
de demo
sal am sieu o mica problema cind vreu sa trimit un mesaj depe forum pe e-mail la user imi da erroarea asta
Cod: Selectaţi tot
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\www\xampp\htdocs\massmail.php on line 37
ce pote sa fie. daca ma puteti ajuta in mail php asa este configurat
Cod: Selectaţi tot
<?
require "include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() <UC_SYSOP>
<p><table><tr>
<td><img></td>
<td><font><b>Send mass e-mail to all members</b></font></td>
</tr></table></p>
<table>
<form>
<!--<tr><td>Your name</td><td><input></td></tr>-->
<if> UC_POWER_USER)
printf("<input type=hidden name=class value=$CURUSER[class]\n");
else
{
print("<tr><td>Classe</td><td><select><option><<option>><option>=<option><=<option>>=</select><select>\n");
if (get_user_class() == UC_MODERATOR)
$maxclass = UC_POWER_USER;
else
$maxclass = get_user_class() - 1;
for ($i = 0; $i </select>
<!--<tr><td>Your e-mail</td><td><input></td></tr>-->
<tr><td>Subject</td><td><input></td></tr>
<tr><td>Body</td><td><textarea></textarea></td></tr>
<tr><td><input></td></tr>
</form>
</table>
<stdfoot>
daca imi puteti spune care este problema.
si va multumesc anticipat
Scris: 10-Ian-2008, 10:16:39
de Marian96
pai nu ai functia mail() activata
act
Scris: 10-Ian-2008, 10:28:44
de demo
si cum il activez
Scris: 10-Ian-2008, 10:32:23
de Marian96
"sendmail_from" not set in php.ini
ncepator
Scris: 10-Ian-2008, 10:35:29
de demo
daca poti sami explici pe intelesul unui incepator ca nu prea ma pricep si iti multumesc ori cum
Scris: 10-Ian-2008, 10:41:14
de Marian96
posteaza aici fisierul php.ini
Scris: 10-Ian-2008, 12:06:10
de demo
Cod: Selectaţi tot
<?
require_once("include/bittorrent.php");
if (!preg_match(':^/(\d{1,10})/([\w]{32})/(.+)$:', $_SERVER["PATH_INFO"], $matches))
httperr();
$id = 0 + $matches[1];
$md5 = $matches[2];
$email = urldecode($matches[3]);
if (!$id)
httperr();
dbconn();
$res = mysql_query("SELECT editsecret FROM users WHERE id = $id");
$row = mysql_fetch_array($res);
if (!$row)
httperr();
$sec = hash_pad($row["editsecret"]);
if (preg_match('/^ *$/s', $sec))
httperr();
if ($md5 != md5($sec . $email . $sec))
httperr();
mysql_query("UPDATE users SET editsecret='', email=" . sqlesc($email) . " WHERE id=$id AND editsecret=" . sqlesc($row["editsecret"]));
if (!mysql_affected_rows())
httperr();
header("Refresh: 0; url=../../../my.php?emailch=1"
astai
Scris: 10-Ian-2008, 23:31:46
de axn
Ala nu e php.ini. Daca zice de sendmail_from, inseamna ca ai serverul pe windows.
Cauta:
Cod: Selectaţi tot
[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from = you@yourdomain
si completeaza sa nu fie lasat liber.
Dupa asta, trebuie sa ai si un server de mail instalat, sau la SMTP = localhost sa modifici cu un server de mail.. eventual de la providerul de net.
php in
Scris: 14-Ian-2008, 14:53:11
de demo
scuze ca am pus alceva decit php in uita cum e configurat ca tot amincercat si tot numi trimite mail de configurare
Cod: Selectaţi tot
;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;
[Date]
; Defines the default timezone used by the date functions
;date.timezone =
[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In
; runtime, you can define these variables by calling define_syslog_variables().
define_syslog_variables = Off
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = mail.isdn-2.ro
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = "C:\www\xampp\sendmail\sendmail.exe -t"
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
[SQL]
sql.safe_mode = Off
[ODBC]
;odbc.default_db = Not yet implemented
;odbc.default_user = Not yet implemented
;odbc.default_pw = Not yet implemented
; Allow or prevent persistent links.
odbc.allow_persistent = On
; Check that a connection is still valid before reuse.
odbc.check_persistent = On
; Maximum number of persistent links. -1 means no limit.
odbc.max_persistent = -1
; Maximum number of links (persistent + non-persistent). -1 means no limit.
odbc.max_links = -1
; Handling of LONG fields. Returns number of bytes to variables. 0 means
; passthru.
odbc.defaultlrl = 4096
; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
; of uodbc.defaultlrl and uodbc.defaultbinmode
odbc.defaultbinmode = 1
[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = On
; Maximum number of persistent links. -1 means no limit.
mysql.max_persistent = -1
; Maximum number of links (persistent + non-persistent). -1 means no limit.
mysql.max_links = -1
; Default port number for mysql_connect(). If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
; at MYSQL_PORT.
mysql.default_port =
; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
mysql.default_socket =
; Default host for mysql_connect() (doesn't apply in safe mode).
mysql.default_host =
; Default user for mysql_connect() (doesn't apply in safe mode).
mysql.default_user =
; Default password for mysql_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
; and reveal this password! And of course, any users with read access to this
; file will be able to reveal the password as well.
mysql.default_password =
; Maximum time (in secondes) for connect timeout. -1 means no limit
mysql.connect_timeout = 60
; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
mysql.trace_mode = Off