V
V
Vanes Ri_Lax2015-03-16 10:34:57
PHP
Vanes Ri_Lax, 2015-03-16 10:34:57

Why does an error occur when using the mail function?

I have php attached to IIS, to send mail I registered in php.ini
sendmail_path = "C:/sendmail-ssl"
When calling the mail () function, php writes the following to the error log:

[16-Mar-2015 12:33:03 Asia/Yekaterinburg] PHP Warning:  PHP Startup:  in Unknown on line 0
[16-Mar-2015 12:33:03 Asia/Yekaterinburg] PHP Warning:  PHP Startup:  in Unknown on line 0
[16-Mar-2015 12:33:03 Asia/Yekaterinburg] PHP Warning:  PHP Startup: p in Unknown on line 0
[16-Mar-2015 12:33:03 Asia/Yekaterinburg] PHP Warning:  PHP Startup: p in Unknown on line 0

Why does this error occur and how to fix it?
Thank you very much in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery Ryaboshapko, 2015-03-16
@vanesxl

The sendmail_path directive takes the path to the executable, and you seem to have only specified the path to the folder where the executable is located.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question