Csv file import not working

Hello, I am new to SuiteCRM and lately I’ve been trying to import a csv file to the Accounts and Contacts modules but to no avail.
Here’s what I’ve tried to do:
I had a json file which I converted to csv
I created the custom fields,
I went to the Accounts tab and clicked on import.
I followed the steps and everything and even a pop up appeared showing the lines being imported. At the last second either an error appears about email SMTP configuration or the page remains blank.
I’ve tried to configure the email with the port etc from the Settings but I keep getting this error even when I use a different email

An email error occurred:SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub

I even tried downloading the templates and then changing some values but nothing works.
Has anyone had a similar problem before ?

Hi @nowala. Welcome to the community!!

I’m not sure what the problem is but I’ll recommend to mention your version of SuiteCRM, PHP and DB so people can help you better.