Welcome Guest, Not a member yet? Register   Sign In
sendWithMail throwing error on shared server
#1

Code:
PHP Code:
$content=view("orders",$data);
$email = \Config\Services::email();

$email->setFrom('[email protected]''clients name');
$email->setTo($cust_row->email);
$email->setSubject('Email Subject');
$email->setMessage($content); 

Result:
PHP Code:
EmailsendWithMail throwed Use of undefined constant INTL_IDNA_VARIANT_UTS46 assumed 'INTL_IDNA_VARIANT_UTS46' (this will throw an Error in a future version of PHP

Uploaded to Bluehost, using php 7.2, the sending email isn't working. (but so far the CI4 update for the order taking is working, so, that's a plus)
Reply
#2

You should contact your host and ask them to upgrade their ICU library to 4.6+. That version where released back in 2010-12-02. They haven't updated their server since then... yikes!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB