Visualizzazione dei risultati da 1 a 2 su 2

Discussione: mail non funzona

Visualizzazione discussione

  1. #2
    Ho installato postfix
    configurato il file php.ini cosi
    codice:
    [mail function]
    ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
    ; https://php.net/sendmail-path
    sendmail_path = "/usr/sbin/sendmail -t -i"
    ; 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().
    ;mail.force_extra_parameters =
    
    ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
    mail.add_x_header = Off
    
    ; Use mixed LF and CRLF line separators to keep compatibility with some
    ; RFC 2822 non conformant MTA.
    mail.mixed_lf_and_crlf = Off
    
    ; The path to a log file that will log all mail() calls. Log entries include
    ; the full path of the script, line number, To address and headers.
    ;mail.log =
    ; Log mail to syslog (Event Log on Windows).
    ;mail.log = syslog
    mail.log = /var/log/phpmail.log
    Poi ricevo
    Warning: mail(/var/log/phpmail.log): Failed to open stream: Permission denied in /var/www/html/test_email.php on line 9
    Warning
    : mail(/var/log/phpmail.log): Failed to open stream: Permission denied in /var/www/html/test_email.php on line 10
    e email niente.
    Ricordo che sto lavorando in locale.
    Ultima modifica di lucavalentino; 21-07-2024 a 11:49

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.