Vielen Dank ! Es läuft schon fast perfekt.
Ich bin wie folgt vorgegangen: Ich habe den alten Code unten in die php.php vor das "?" eingefügt, also
require_once(MYBB_ROOT."/inc/phpmailer/class.phpmailer.php");
$mail = new PHPMailer;
$mail->From = $mybb->settings['Webmaster'];
$mail->FromName = $mybb->settings['abc.de']." Mailer";
$mail->Mailer = "smtp";
$mail->Host = "webrelay.def.de";
$mail->SMTPAuth = false;
$mail->Username = "";
$mail->Password = "";
$mail->Subject = $subject;
$mail->Body = $message;
$mail->AddAddress($to);
$mail->Send();
$mail->ClearAddresses();
Einwandfrei funktioniert hat jetzt der Versand einer mail über das contact-form-Plugin.
Beim Versand einer mail von einem user an einen anderen taucht aber noch ein Problem auf. Zwar wird die Nachricht erfolgreich übersandt. Es erscheint jedoch nach dem Klick auf "E-mail senden" eine Fehlermeldung: 500 Internal Server Error - The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator,
[email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.
Könnte dieses Problem auch noch gelöst werden ?