nach langer Zeit, brauche ich mal wieder einen Schubs in die Richtige Richtung.
OS: Linux Mint Cinnamon 64-Bit
XAMPP-Version : 7.4.12
PHP-Version: 7.4.12
Aufruf mittels PHP-Script auf localhost
- Code: Select all
if ( sendmail( $empfaenger, $betreff, $message, $header ) ) {
Fehlermeldung:
Fatal error: Uncaught Error: Call to undefined function sendmail() in /opt/lampp/htdocs/www.heiko-rompel.de/kontakt.php:52 Stack trace: #0 {main} thrown in /opt/lampp/htdocs/www.heiko-rompel.de/kontakt.php on line 52
Sendmail ist installiert:
- Code: Select all
heiko@heiko-pc:~$ which sendmail
/usr/sbin/sendmail
Die php.ini unter "/opt/lampp/etc" habe ich als Admin geöffnet und folgendes eingetragen:
- Code: Select all
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP=localhost
; http://php.net/smtp-port
smtp_port=25
; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = me@example.com
sendmail_from = postmaster@localhost
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path =
sendmail_path = /usr/sbin/sendmail
;sendmail_path = /usr/lib/sm.bin
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header=On
; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log =
Wo ist mein Fehler ?