Hallo Gemeinschaft,
hat schon mal jemand einen SMTP-Mail-Versand (Newsletter, mehrere Empfänger) für ein 1&1-Konto realisiert und kann mir weiterhelfen?
Mein php-Mailer läuft mit php mail() und versagt bei smtp. Der ganze Quelltext ist zu lang, deshalb hier der Auszug der meines Erachtens betreffenden Einstellungen:
Wäre toll, wenn mir jemand helfen könnte. Vielen Dank im Voraus.
hat schon mal jemand einen SMTP-Mail-Versand (Newsletter, mehrere Empfänger) für ein 1&1-Konto realisiert und kann mir weiterhelfen?
Mein php-Mailer läuft mit php mail() und versagt bei smtp. Der ganze Quelltext ist zu lang, deshalb hier der Auszug der meines Erachtens betreffenden Einstellungen:
PHP:
/**
* Method to send mail: ("mail", "sendmail", or "smtp").
* @var string
*/
var $Mailer = 'smtp';
/**
* Sets the path of the sendmail program.
* @var string
*/
var $Sendmail = '/usr/sbin/sendmail';
/**
* Path to PHPMailer plugins. This is now only useful if the SMTP class
* is in a different directory than the PHP include path.
* @var string
*/
var $PluginDir = '';
/**
* Holds PHPMailer version.
* @var string
*/
var $Version = "2.0.4";
/**
* Sets the email address that a reading confirmation will be sent.
* @var string
*/
var $ConfirmReadingTo = '[email protected]';
/**
* Sets the hostname to use in Message-Id and Received headers
* and as default HELO string. If empty, the value returned
* by SERVER_NAME is used or 'localhost.localdomain'.
* @var string
*/
var $Hostname = '';
/**
* Sets the message ID to be used in the Message-Id header.
* If empty, a unique id will be generated.
* @var string
*/
var $MessageID = '';
/////////////////////////////////////////////////
// PROPERTIES FOR SMTP
/////////////////////////////////////////////////
/**
* Sets the SMTP hosts. All hosts must be separated by a
* semicolon. You can also specify a different port
* for each host by using this format: [hostname:port]
* (e.g. "smtp1.example.com:25;smtp2.example.com").
* Hosts will be tried in order.
* @var string
*/
var $Host = 'smtp.1und1.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 connection prefix.
* Options are "", "ssl" or "tls"
* @var string
*/
var $SMTPSecure = "";
/**
* Sets SMTP authentication. Utilizes the Username and Password variables.
* @var bool
*/
var $SMTPAuth = false;
/**
* Sets SMTP username.
* @var string
*/
var $Username = '[email protected]';
/**
* Sets SMTP password.
* @var string
*/
var $Password = 'meinpasswort';
/**
* Sets the SMTP server timeout in seconds. This function will not
* work with the win32 version.
* @var int
*/
var $Timeout = 10;
/**
* Sets SMTP class debugging on or off.
* @var bool
*/
var $SMTPDebug = false;
/**
* Prevents the SMTP connection from being closed after each mail
* sending. If this is set to true then to close the connection
* requires an explicit call to SmtpClose().
* @var bool
*/
var $SMTPKeepAlive = false;
/**
* Provides the ability to have the TO field process individual
* emails, instead of sending to entire TO addresses
* @var bool
*/
var $SingleTo = false;
Wäre toll, wenn mir jemand helfen könnte. Vielen Dank im Voraus.