Sending mail via the mail function

Good afternoon! I use denwer. I send a letter using the mail function. Clearly, there is a sendmail stub (all messages are accumulated in /tmp/!sendmail – a mail emulator). How to turn it off? Need to find out whether a new user will receive a letter in real conditions, after publishing a site on a hosting, or not? I want to send a sample to my soap, but the stub works!

Answer 1, authority 100%

In the \usr\local\php5folder there is a php.ini file, in it in the section
[mail function]:

;; Denver’s comment:
;; to disable the sendmail debugging emulator, specify in the SMTP
;; address of your ISP’s SMTP server, and DON’T FORGET to comment
;; directive sendmail_path ! If sendmail_pathis not commented out,
;; will not work, because sendmail_pathtakes precedence.


; For Win32 only.

; For Win32 only.
sendmail_from = [email protected]

; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
; sendmail_path = \usr\sbin\sendmail -t -i

Answer 2, authority 50%

If the emails are found in the sendmail folder, then they are sent, you can be calm. Another thing is that letters sent simply by the mail function without headers can end up in the spam folder.