ALL SYSTEMS OPERATIONALUPTIME 99.97%FLEET 18/18IN-MUM · US-LAX · EU-FSN EST. 2003 · +91 11 4998 4038

KENNTNISSE

E-Mail-Versand (SMTP) mit PHPMailer

Zuletzt aktualisiert 2020-04-05

1) Zuerst einmal den Download PHP Mailer Klassen und Dokumentation.

2) Upload both class.smtp.php and class.phpmailer.php to your web space.

3) Erstellen Sie test.php und fügen Sie den folgenden Code in die Datei ein

<?
erfordern ('class.phpmailer.php');

$mail = neuer PHPMailer();
$mail->IsSMTP();
$mail->From = ""mail@domain.com";;
$mail->FromName = "Ihr Name";
$mail->Host = 'mail.domain.com';
$mail->SMTPAuth = wahr;
$mail->Benutzername = 'mail@domain.com';
$mail-> Passwort = "********";
$mail->AddAddress("dest@domain.com", "His name");
$mail->Subject = "Hier ist das Thema";
$mail-> Body = "Dies ist der Nachrichtenkörper";
if($mail->Send())
{
echo "E-Mail gesendet";
Ausfahrt,
}
echo "Es gab einen Fehler beim Senden der Nachricht;
?>


4) Ersetzen Sie die Parameter

5) Führen Sie die test.php

← Alle Knowledgebase Artikel

Sagen Sie uns, was aufbleiben muss.

A short conversation with an engineer. No quote-bot, no callback queue. We'll tell you honestly if we're not the right fit.