There is a server on the ubuntu system on which nginx is installed. It is necessary that when registering, an email is sent to the mail that was registered, I use the mail () function. In php, but the message cannot be understood. Everything works on the local host
<?php $email = $_POST['to']; $from = "a@gmail.com"; $subject = "fsfs"; $body = "this is auto message"; $from_new = "from: $from"; mail($email,$subject,$body,$from_new); ?> introduced this command
<?php echo mail ("my_exist@gmail.com","test message", "test message","From:no-reply@gmail.com"); ?> выдает 1 что это значит и как все таки настроить чтоб сообщение отправлялось. Заранее спасибо за ответы