Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>What can be the case? To make this extra clear: I want PHP to be able to e-mail!</p> </blockquote> <p>The case or better the cause in your case is, that the mail() function and sendmail are two different pair of shoes. They are not related to each other per-se.</p> <p>So only because you can send emails using the sendmail program this does not mean that the php mail() function will send emails as well.</p> <p>What you are facing is a configuration problem of your php installation. PHP is pretty good to sending emails by default but PHP is not able to know all setups so in case mail() fails you need to check wether or not you've properly configured PHP to send emails.</p> <p>A good start to learn more what to configure, get tons of notes and notices as well as related information is the PHP manual: <a href="http://php.net/manual/en/function.mail.php" rel="nofollow">mail() function</a>.</p> <p>A first sanity check - as others have already commented - is to check the return value of the mail() function. If it's false, then PHP knows that sending mail has failed.</p> <p>If it's true and you still don't get the email (out), then some other component is not helpful in transporting the email further on. You need to check the whole chain of the transport and - just to make it bold - you can have multiple errors in your overall configuration that is preventing you sending emails via PHP even in case you are able to send some from the shell.</p> <p>If this is too complicated for you I suggest you get in contact with a system administrator that can help you in solving your problem.</p> <p>BTW you can write your own wrapper and send emails with a shell command: <a href="http://php.net/manual/en/function.shell-exec.php" rel="nofollow">shell_exec</a>, take care.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload