IP-1.5 error sending email using SMTP (PHP 5.6)

I was using IP-1.4.10 using php 5.5 before I upgraded to IP-1.5 using php 5.5.

When I try to send an email I get the following errors:

browser error message:
https://paste.invoiceplane.com/view/010e578a

/application/logs:
https://paste.invoiceplane.com/view/d3c01dab

I tried changing to php 7.0. The errors go away, BUT I am still not able to send any emails.

Thanks

David

open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s)

The error mesage is pretty clear: the path /dev/urandom is not added within your open_basedir setting. Please search on Google on how to add the path.

I can successfully run 1.4.10 on php 5.5 on the same host. I am running invoiceplane on shared hosting so (have just googled), I think the correct fix would be to put a line in a .htaccess file to add the path to the open_basedir setting.

Thanks.

UPDATE:

I have now upgrade IP on development domain to 1.5.2 (using php 5.6).

When I try to send an email I get the following errors:

browser error message:
https://paste.invoiceplane.com/view/a5876447

browser console message:

[Violation] Forced reflow while executing JavaScript took 43ms

/application/logs:
https://paste.invoiceplane.com/view/2f3836dc

Thanks

David