|
|
| 1 |
P.S.: Auf GoogleMail klappt der Versand.
– darkdust 14.11.2009
|
|
|
|
So ich habs jetzt mit dem aktuellen phpMailer gemacht und es funktioniert super :) Vielen Dank!
– darkdust 16.11.2009
|
function sendEmail($to, $from, $subject, $message) {
require_once "Mail.php";
$params = array();
$params["host"] = 'smtp.HOST.com'; # The server to connect. Default is localhost.
$params["port"] = 25; # The port to connect. Default is 25.
$params["auth"] = true; # Whether or not to use SMTP authentication. Default is FALSE.
$params["username"] = 'webmaster@YOURWEBSITE.com'; # The username to use for SMTP authentication.
$params["password"] = 'password'; # The password to use for SMTP authentication.
$mail_object =& Mail::factory('smtp', $params);
$headers = array();
$headers['From'] = 'No-Reply <info@YOURWEBSITE.com>';
$headers['Reply-To'] = $from;
$headers['X-Mailer'] = 'PHP/' . phpversion();
$headers['To'] = $to;
$subject = utf8_decode($subject);
$subject = mb_encode_mimeheader($subject, mb_internal_encoding(), 'B', "\n");
$headers['Subject'] = $subject;
$headers['Content-Type'] = 'text/plain; charset=UTF-8';
$headers['Content-transfer-encoding'] = 'Content-transfer-encoding: 8bit';
$ok = $mail_object->send($to, $headers, $message);
return $ok;
}|
|
|
|
Created outgoing job with ID MO001310
To: xxx@web.de (non-local) -OK
13:28:58: processing job MO001310
Temporary error 249 (temporary MX resolution error) resolving 'web.de'.
Connection from 127.0.0.1, Sat Nov 14 13:28:50 2009
HELO Kai-PC
MAIL FROM:<xxx@web.de>
RCPT TO:<xxx@web.de>
DATA
DATA - 34 lines, 1036 bytes.
QUIT
1 sec. elapsed, connection closed Sat Nov 14 13:28:51 2009
|
|
|
Unter Mercury -> Configuration -> MercuryE SMTP Client die Nameserver geprüft bzw mal einen anderen versucht?
– weberph 14.11.2009
|
||
|
"Unter Mercury -> Configuration -> MercuryE SMTP Client die Nameserver geprüft bzw mal einen anderen versucht?"
Ich habe dort meine DNS-Server eingetragen. Die kannst du zB herausfinden via Konsole: "ipconfig /all" (unter Windows). – weberph 15.11.2009
|