Hy,
habe mich zu früh gerfreut. Nachdem ich das Beispielscript aus dem phpmail-Paket übernommen habe:
PHP-Code:
<?php
require("../PHP5/classes/phpmailer/class.phpmailer.php");
$mail = new PHPMailer();
$mail->SetLanguage("br", "../PHP5/classes/phpmailer/language/phpmailer.lang-de");
$mail->IsSMTP(); // set mailer to use SMTP
$mail->Host = "mail.1und1.de"; // specify main and backup server
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "xxx"; // SMTP username
$mail->Password = "xxx"; // SMTP password
$mail->From = "GeorgeBush@whitehouse.gov";
$mail->FromName = "Goerge W. Bush";
$mail->WordWrap = 50; // set word wrap to 50 characters
$mail->Subject = "Testmail";
$mail->Body = "Test this fucking mailfunction";
$mail->AltBody = "No html please";
if(!$mail->Send())
{
echo "Message could not be sent. <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo "Message has been sent";
?>
Bekomme ich folgende Fehlermeldung:
Message could not be sent.
Mailer Error: Language string failed to load: provide_address
---------------------------------------
Die php.ini habe ich mit den Pfaden angepasst:
Code:
;
Windows: "\path1;\path2"
include_path = ".;C:\Programme\Apache
Group\Apache2\PHP5\classes\phpmailer\class.phpmailer.php;C:\Programme\Apache
Group\Apache2\PHP5\classes\phpmailer\class.smtp;C:\Programme\Apache
Group\Apache2\PHP5\classes\phpmailer\language\phpmailer.lang-de"
Habs auch mal ohne language-path probiert, weil Englisch ist OK.
Language string failed heisst doch sowas wie language-pack nicht gefunden.
Die Pfade habe ich bei der Apache-Installation übernommen. php habe ich in einen Sub von Apache und die phpmail habe ich in den Unterorder classes von php gepackt. Macht das Leerzeichen im Pfad Probleme? Aber das scheints zu sein, was ich suchte, wenn ichs irgendwie ans rennen bekomme.
mfG
tsunamitsunami