I installed KSWEB Pro v3.986 on my Samsung smartphone including PHP Lighttpd and MSMTP. I would like to send emails using an external email provider like gmx, gmail, directbox. But after I run the following PHP website, nothing happens. The MSMTP log is still empty. What is important in the configuration.
<?php
$from_address = "myuser@directbox.com";
$message = "This is a test";
$bool = mail("my_other_user@gmail.com", "Testmail", $message, "From: MyName <$from_address>");
echo $bool;
?>
Here is my MSMTP configuration:
defaults
port 465
# account default
account directbox
## host of smtp server, example: smtp.directbox.com
## !edit this!
#host 0.0.0.0
host smtp.directbox.com
auth on
## Use transport Layer Security (TLS) - Secure Socket Layer (SSL).
tls on
tls_starttls off
tls_certcheck off
## smtp login
## !edit this!
user myuser@directbox.com
## smtp password
## !edit this!
password myPassword
## Set the envelope-from address. This adress must be equal to
## your email which you are use above.
## !edit this
from myuser@directbox.com
logfile /data/user/0/ru.kslabs.ksweb/components/log/msmtp/msmtp.log