Ir al contenido
  • +31 653-919-302
Cafayate.Net
  • 0
  • 0
  • Inicia sesión
  • Nederlands English (US) Español (AR)
  • Contáctanos
  • Inicio
  • Blog
  • Empleos
  • Contáctanos
Cafayate.Net
  • 0
  • 0
    • Inicio
    • Blog
    • Empleos
    • Contáctanos
  • +31 653-919-302
  • Nederlands English (US) Español (AR)
  • Inicia sesión
  • Contáctanos

CONFIGURE POSTFIX/SENDMAIL FOR PHP MAIL() IN UBUNTU

  • Todos los blogs
  • Tech Blog
  • CONFIGURE POSTFIX/SENDMAIL FOR PHP MAIL() IN UBUNTU
  • 5 de marzo de 2021 por
    Administrator

    Actually configure Postfix or Sendmail for PHP mail() is the same. Both of them run the /usr/sbin/sendmail binary. It is quite confusing if we just look at the name of the binary but this is what Postfix did.

    For more information, take a look at the Postfix Manual – sendmail.

    For the PHP setting, open the /etc/php5/apache2/php.ini and configure the sendmail_path.
    php.ini

    1
    2
    3
    ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
    ; http://php.net/sendmail-path
    sendmail_path = "/usr/sbin/sendmail -t -i"

     

    Save the file and restart the Apache server.

    Try testing the PHP mail() function by the following command.

    1
    echo testing | mail -s Bla [email protected]

     

    If you need to send with attachment. you can refer to this post.
    PHP – Send Attachment with PHP mail()

     

    en Tech Blog
    Ansible and WordPress: roles and playbooks

    Diseñado para empresas

    Somos un equipo de personas apasionadas cuyo objetivo es mejorar la vida de todos a través de productos revolucionarios. Creamos grandes productos para resolver sus problemas empresariales. Nuestros productos están diseñados para pequeñas y medianas empresas dispuestas a optimizar su rendimiento.

    Contáctenos

    Plantexel
    Pedernera
    Salta Capital 
    Argenina

    • +31 653-919-302
    • [email protected]
    Síganos
    Copyright © Plantexel
    Nederlands | English (US) | Español (AR)