Every time i try to submit a form a i am getting a Could not instantiate mail function. error.

This error can be generated by a bunch of reasons - from improper CCF emailing configuration to server side mailer failure.

Troubleshooting steps:

We will first have to identify what exactly is causing this - your form configuration, or your Joomla! installation. You can easily check this by creating a new Joomla! user. As you know an automated email should be generated with the account details. If the same error is displayed (or the email hasn't arrived), then, the issue is generated by one of two things:

Mailer failure. If you are using PHP Mail (Site > Global Configuration > Server), it would be best to contact the hosting provider. As an alternate solution, you could try switching the mailer type to an external service, such as SMTP. More details on the available configuration options can be found here - http://docs.joomla.org/Help16:Site_Global_Configuration

Improper mail settings. In this case, you will have to make sure that you have specified a name and email, within the Site > Global Configuration > Server area.

If the user related email worked fine, then this is generated by your CCF emailing setup. CCF generated emails can be configured here: Components > CCF > Forms > edit the form > Email Options. For all configured emails, you will need to check for the following fields:

Email To (recipient) - should be empty, or contain a valid email address. If you do use multiple recipients, then the correct email address separator is comma (,). If it is empty, email set in global configuration will be used

Email From - should be empty, or contain a valid email address. If it is empty, user inputted email will be used. If it is also empty, CCF will use email set in global configuration. Some email servers require emails to be sent from the same server as the site in. If your domain is example.com, then you should set Email To it to email1@example.com, and Email From to email2@example.com (different emails).

Reply to Email - should be empty, or contain a valid email address. If it is empty, you will reply to user inputted email. If it is also empty, CCF will use email set in global configuration.

Note: Sometimes emails are being stored in SPAM folder. Please check it as well.