Salutari tututor.
Am si eu cateva nelamuriri in legatura cu validarea userului dupa ce isi creeaza contul in forumul IPB v2.2.1.
Adica atunci cand forumul trebuie sa trimita mail catre user, apare o eroare de genul:
IPB WARNING [2] fopen(./_mail/Dec-22-2006,0837-AMgeoacasa+gmail.com.txt): failed to open stream: No such file or directory (Line: 430 of /sources/classes/class_email.php)
IPB WARNING [2] fputs(): supplied argument is not a valid stream resource (Line: 431 of /sources/classes/class_email.php)
IPB WARNING [2] fclose(): supplied argument is not a valid stream resource (Line: 432 of /sources/classes/class_email.php)
Deci nu poate sa trimita acel cod de validare si apare aceasta eroare.
Daca setez sa numai trimita validare, merge perfect, dar totusi as dori sa aflu sau sa rezolv cumva aceasta eroare.
Stie cineva ?
Totul pleaca de la "class_email.php", iar procedura din acest fisier este de genul acesta:
//-----------------------------------------
// Lets go..
//-----------------------------------------
if ( ($this->from) and ($this->subject) )
{
//-----------------------------------------
// Tmp dump? (Testing)
//-----------------------------------------
if ($this->temp_dump == 1)
{
$blah = $this->subject."\n------------\n".$this->rfc_headers."\n\n".$this->message;
$pathy = $this->root_path.'_mail/'.date("M-j-Y,hi-A").str_replace( '@', '+', $this->to ).".txt";
$fh = fopen ($pathy, 'w');
fputs ($fh, $blah, strlen($blah) );
fclose($fh);
}
else
{
//-----------------------------------------
// PHP MAIL()
//-----------------------------------------
if ($this->mail_method != 'smtp')
{
if ( ! @mail( $this->to, $this->subject, $this->message, $this->rfc_headers, $this->extra_opts ) )
{
# Try without args for safe mode peeps
if ( ! @mail( $this->to, $this->subject, $this->message, $this->rfc_headers ) )
{
$this->fatal_error("Could not send the email", "Failed at 'mail' command");
}
}
}
Respectele mele,
Geo
Astept un raspuns cat se poate de urgent.