ich möchte mit meinem Phpscript emails via Smpt verschicken.
Ich habe im Pfad C:\xampp\apache\bin\php.ini das Semikolon
vor dem Ausdruck extension=php_sockets.dll entfernt.
Ich habe dem Admin in Mercury ein Passwort vergeben, dass
stimmt auch mit meinem Phpscriptpasswort überein? Wenn ich
aber eine Email aus der Oberfläche von Mercury sende, dann
verschickt er diese Email auch. Nur wenn ich in meinem Phpscript
eine Email absenden möchte kommt eine Fehlermeldung (Siehe unten).
Da aber immernoch eine Fehlermeldung kommt ,meine Frage:
->An welche weiteren ini-Dateien od. Argumente muß ich was,wie und wo anpassen?
->Muß ich etwas in Mercury einstellen damit ich auf den SMPT zugreifen kann?
->Muß ich etwas zusätzlich installieren, ich benutze Xampp für Windows
Fehlermeldung
- Code: Select all
Unable to send e-mail to admin@localhost. unable to authenticate to smtp server on
Aufruf zum Email senden mit Hilfe der PEAR-Klassenbibliothek
- Code: Select all
public function Mail($params, $to, $headers, $message)
{
// Create the mail object using the Mail::factory method
$mail_object = Mail::factory('smtp', $params);
// Test the mail object is valid
if (PEAR::isError($mail_object))
throw new Exception($mail_object->getMessage());
// sends email
$result = $mail_object->send($to, $headers, $message);
// Test if mail was sent successfully
if (PEAR::isError($result))
throw new Exception("Unable to send e-mail to $to. " .
$result->getMessage());
}
Bitte helft mir ich bin kurz vorm verzweifeln!
Mfg
Tommyboy