CFv4 Emails

Error: "The mail function has been temporarily disabled . . ."

If you see this error: "The mail function has been temporarily disabled on this site, please try again later." then please check the Site Admin | Global Configuration | Server | Mail Settings and make sure that Send mail is set to yes.

Problems with 'Reply To' Email addresses

There is a Joomla! bug that adds the Admin Email address to any Reply To Email address that is set in ChronoForms.

Error: "Could not instantiate mail function"

This error is usually seen when you set up a new site or upgrade an exisiting site. Here are some suggestions for finding the source of the problem.

Some email data is missing

If you are not receiving the expected results in the body of your email message body here are some suggestions:

How can I attach files from my server to an email?

ChronoForms makes it easy to attach uploaded files to an email but sometimes you need to attach a 'standard' file that hasn't been uploaded like a product brochure or terms and conditions. This FAQ gives you one way to do that.

Why is there JavaScript code in the Email field?

If you are receiving a JavaScript chunk of code after a failed validation in the Email address field in your form, then you probably have the Joomla! Email Cloaking Plug-in enabled and it is trying to cloak the sample e-mail in the ChronoForms validation message.

Why do I get an 'Invalid Address' message?

I think that the "Invalid address:" message comes up in a couple of circumstances: 

Why aren't my emails being delivered?

There are many different causes of emails not being delivered. It can take some time and patience to find the cause. Most often ChronoForms and Joomla! are sending the emails correctly but they are being marked as possible spam and not being delivered.

How do I create an email subject using data from the form?

This FAQ shows you how to combine form input data and text to make up an email subject. You can use exactly the same method to build, for example, a Reply To Name from first_name and last_name data from your form.

How can I send an email to different addresses?

It's often useful to be able to send emails to different addresses depending on the selections the user has made in the form. For example., a Customer Service form might be sent to different departments depending on the type of question that is being asked.
It is tempting to try to do this by putting the emails in the Form HTML. This will work but is a security risk as any email in your HTML may be scraped and added to a spammers list.
Here is how to select the correct email address after the form is submitted.

How can I translate emails?

The ChronoForms Email action allows you to create an email template but there is only one template and there is no obvious way to support different languages. This FAQ suggests some ways to handle translations. 

How do I send an email to the user?

Here's a short video tutorial on sending an email to an user, or to a email address submitted in the form data. This is usually when you want to send a message to thank the user, or to confirm the form submission.

How do I send an email to an admin?

Here's a short video tutorial on sending an email to an admin, or to a fixed email address. This is usually when you want to send an advice that a form has been submitted.