[[+content_image]]
E
E
Eugene M.2019-11-06 17:07:56
1C-Bitrix
Eugene M., 2019-11-06 17:07:56

How to configure mailphp in bitrixvm?

It works through the console.

[[email protected] ~]# echo "The тест test body" | mail -s "The тест test subject" [email protected]

And through the function is not, tell me why?
<?php
  ini_set( 'display_errors', 1 );
  error_reporting( E_ALL );
  $from = "[email protected]";
  $to = "[email protected]";
  $subject = "PHP Mail Test script";
  $message = "This is a test (тест) to check the PHP Mail functionality";
  $headers = "From:" . $from;
  mail($to,$subject,$message, $headers);
  echo "Test (тест) email sent";
?>

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
G
Georgy Baruchyan, 2019-11-06
@Snatch87

Try commenting out the following lines in bitrix/php_interface/dbconn.php:

define("BX_CRONTAB_SUPPORT", true);
define("BX_CRONTAB", true);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question