Aktuelles & Updates von
Joomla, Wordpress und Co.
News, HowTos und Tutorials rund um Webdesign, Webentwicklung, Webhosting und Digitalisierung.
PHPlist auf SMTP umbauen
Regulär ist das Newsletterscript auf die Senmailfunktion vom Apache Server eingerichtet. Um das ganze nun auf einen externen SMTP-Server umzubasteln sind ein paar Änderungen im Quellcode nötig.
\lists\admin\phpmailer\class.phpmailer.php
\lists\admin\phpmailer\class.smtp.php
Ab Zeile 44 in lists/admin/phpmailer/class.phpmailer.php
Mailer auf SMTP setzen !!
$this->Mailer = "smtp";
} else{
# logEvent('Sending via mail');
$this->Mailer = "smtp";
}
Ab Zeile 150 lists/phplist/class.phpmailer.php
Die Einstellungen für den SMTP-Server anpassen.
*/
var $Host = "mailout.YourDomain.de";
/**
* Sets the default SMTP server port.
* @var int
*/
var $Port = 25;
/**
* Sets the SMTP HELO of the message (Default is $Hostname).
* @var string
*/
var $Helo = "";
/**
* Sets SMTP authentication. Utilizes the Username and Password variables.
* @var bool
*/
var $SMTPAuth = true;
/**
* Sets SMTP username.
* @var string
*/
var $Username = "XXXX";
/**
* Sets SMTP password.
* @var string
*/
var $Password = "XXXX";
Zeile 110 in lists/phplist/class.phpmailer.php
Auswählen das die Methode zum Senden der Mails doch bitte SMTP sein soll.
/**
* Method to send mail: ("mail", "sendmail", or "smtp").
* @var string
*/
var $Mailer = "smtp";
Danach einfach den Server neustarten und PHPlist sendet seine Mails über den SMTP-Server und nichtmehr über Sendmail.
Zurück zur Übersicht