Mails mit PHP auf XAMPP Localhost mit Google Account SMTP Server verschicken

Опубликовано: 01 Март 2026
на канале: Neulandschule
2,352
16

In diesem Tutorial wird gezeigt, wie man E-Mails auch vom XAMPP Localhost verschicken kann.

Als SMTP-Server kann der Google-Mail-Account verwendet werden.
Es wird dabei auf folgende Fehlermeldung eingegangen:
"Username and Password not accepted. Learn more at..."

Es müssen folgende Einstellungen vorgenommen werden:

php.ini
---------------------
SMTP=smtp.gmail.com
smtp_port=587
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

sendmail.ini
---------------------
smtp_server=smtp.gmail.com
smtp_port=587
[email protected]
auth_password=xxx

GITHUB
https://github.com/Neulandschule/PHP-...