Home TechnologyProgrammingPHP Subscribe to RSS
 

How Do You Use Mail Function In PHP?

Answer Question

1 Answer - Sort by: Date | Rating

    The mail() function in PHP allows Internet users to send e-mail to others. For the mail() functions to be available, PHP must have access to the binary feature which is known as sendmail on the system which is owned by a user during the time which is taken by it to compile.



    PHP will first look for sendmail in your PATH and then in any of the following, namely /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It is highly recommended to have the sendmail binary available from your PATH. The user that has compiled the PHP must have the permission to access the sendmail binary. No further installation is needed to use the mail() function in PHP as they are already a part of the PHP core.
    0 0

    Aki 

    answered 3 years ago

      Answer Question - Answers are editable for 5 min.

      If you do not Sign-in or Register your answers will be anonymous,

      your answers may also be checked before going online.

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International