Email sending geting error

HI,
i am getting tis error when tryto send a invoice by email

A PHP Error was encountered
Severity: Warning

Message: escapeshellcmd() has been disabled for security reasons

Filename: src/PHPMailer.php

Line Number: 1597

Backtrace:

File: /home/mydomain/public_html/vendor/phpmailer/phpmailer/src/PHPMailer.php
Line: 1597
Function: escapeshellcmd

File: /home/mydomain/public_html/vendor/phpmailer/phpmailer/src/PHPMailer.php
Line: 1649
Function: isShellSafe

File: /home/mydmain/public_html/vendor/phpmailer/phpmailer/src/PHPMailer.php
Line: 1483
Function: mailSend

enable the function in your PHP settings to use the mailing function or use another way to send emails, there are three to choose from.

Fatal error: Call to a member function format() on boolean in /home/demouser/example.com/application/helpers/date_helper.php on line 86

A PHP Error was encountered
Severity: Error

Message: Call to a member function format() on boolean

Filename: helpers/date_helper.php

Line Number: 86

Backtrace:

please give me solution can not sent mail …

Kovah give a solution some dans ago… :-/

i figured out how to fix this error …

modify the following file
/application/modules/setup/controllers/Setup.php

Right at the insert
date_default_timezone_set(‘Australia/Melbourne’);

The values to insert instead of Australia/Melbourne are listed on the following website
https://secure.php.net/manual/en/timezones.php

your file should now look like this:

→ head Setup.php

<?php date_default_timezone_set('Australia/Melbourne'); if (!defined('BASEPATH')) { exit('No direct script access allowed'); } Hope this helps :)