PHPlist auf 1und1 / 1&1 Server erfolgreich für SMTP-Versand konfigurieren

PHPlist ist einen Newsletter-Manager und Mailinglisten-Software die auf 1und1 Servern etwas anders konfiguriert werden muss, damit Sie überhaupt Mails verschicken kann. Hier eine Kurzanleitung.

1.) PHPlist.com herunterladen und nach Anleitung installieren (dazu braucht man u.a. eine MySQL-Datenbank…)

2.) Die SMTP Versand Einstellungen – natürlich wollen wir mit einer sicheren Verbindungen die Daten versenden ;) – wie folgt an die entsprechende Zeile in config/config.php eintragen:

# If you want to use the PHPMailer class from phpmailer.sourceforge.net, set the following
# to 1. If you tend to send out html emails, it is recommended to do so.
define(„PHPMAILER“,1);

# To use a SMTP please give your server hostname here, leave it blank to use the standard
# PHP mail() command.
define(„PHPMAILERHOST“,’smtp.1und1.de‘);

# if you want to use smtp authentication when sending the email uncomment the following
# two lines and set the username and password to be the correct ones
$phpmailer_smtpuser = ‚Ihre@Email.Adresse‘;
$phpmailer_smtppassword = ‚IhrPasswort‘;
$phpmailer_smtpport = ‚465‘;
$phpmailer_smtpsecure = ’ssl‘;

3.) Der Test-Mail-Versand „Send Test Message“ (im Admin-Webinterface: ../admin/?page=send) resultiert dann allerdings in dieser Fehlermeldung:

Mailer Error: SMTP Error: Could not connect to SMTP host

Die Lösung war in forums.phplist.com zu finden.

Geändert sieht das in der Datei admin/sendmaillib.php wie folgt aus, wobei im Prinzip nur ein Wort ausgetauscht und die Raute davor (zum auskommentieren der Zeile) entfernt (wichtig!) werden muss:

$mail = new PHPlistMailer($messageid,$destinationemail);
if ($forwardedby) {
$mail->add_timestamp();
}
$mail->isSendMail();
}
// 1&1 hack added 20130710 – http://forums.phplist.com/viewtopic.php?p=28861#p83333
// replaced #$mail->IsSMTP(); by $mail->isSendMail();

Das war es, Happy Newsletter sending! :-)

Veröffentlicht in BlogVerschlagwortet mit