Posted by
MrFlup on 15 August 2010, 01:13
#3
Ja, die staat juist ingesteld. Wanneer ik in deze code bewerk.
[geshi=php]
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: sendmail_include.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or >SetLanguage($locale['phpmailer'], INCLUDES."language/");
} else {
$mail->SetLanguage("nl", INCLUDES."language/");
}
if (!$settings['smtp_host']) {
$mail->IsMAIL();
} else {
$mail->IsSMTP();
$mail->Host = $settings['smtp_host'];
$mail->Port = $settings['smtp_port'];
$mail->SMTPAuth = (!empty($settings['smtp_username']) && !empty($settings['smtp_password'])) ? true : false;
$mail->Username = $settings['smtp_username'];
$mail->Password = $settings['smtp_password'];
}
$mail->CharSet = $locale['charset'];
$mail->From = $fromemail;
$mail->FromName = $fromname;
$mail->AddAddress($toemail, $toname);
$mail->AddReplyTo($fromemail, $fromname);
if ($cc) {
$cc = explode(", ", $cc);
foreach ($cc as $ccaddress) {
$mail->AddCC($ccaddress);
}
}
if ($bcc) {
$bcc = explode(", ", $bcc);
foreach ($bcc as $bccaddress) {
$mail->AddBCC($bccaddress);
}
}
if ($type == "plain") {
$mail->IsHTML(true);
} else {
$mail->IsHTML(true);
}
$mail->Subject = $subject;
$mail->Body = $message;
if(!$mail->Send()) {
$mail->ErrorInfo;
$mail->ClearAllRecipients();
$mail->ClearReplyTos();
return true;
} else {
$mail->ClearAllRecipients();
$mail->ClearReplyTos();
return true;
}
}
?>
[/geshi]
Als ik alles op true zet. Bekom ik het volgende wanneer ik het contact formulier wil gebruiken.
Het bericht is verzonden
Dank u wel!
Bij registratie
Uw aanmelding is bijna compleet. U zult een e-mail ontvangen met daarin uw inloggegevens en een link om uw account te verifiëren.
Maar ik krijg helaas bij beide geen mail aan.
Wanneer ik alles weer naar default zet zoals het script oorspronkelijk is van PHP Fusion krijg ik het volgende.
Bij het contact formulier
Uw bericht werd niet verzonden vanwege het volgende:
· Interne fout: kan het bericht niet verzenden.
Probeer het a.u.b. nogmaals.
Bij registratie
E-mailverzending heeft gefaald, neemt u a.u.b. contact met de sitebeheerder.