Setting up the e-mail

Read more on customizing the e-mails here

The e-mail functionality enables you to send you and your customers a notification. The nice part of it it's that this e-mail is fully customizable, so you'll be able to make it as nice as you want, and include all the user's submitted data.

First of all you must make sure that your Joomla installation e-mail is working. To do so, just create a new user. The user should receive a notification e-mail. This operation guarantees that the joomla e-mail parameters are set up correctly.

Now for the customization part, let's take an example:

Assuming that your form has the following fields:

  • Field id: fullname, Field Type: textbox, Default Value:
  • Field id: email, Field Type: textbox, Default Value:
  • Field id: phone, Field Type: textbox, Default Value:
  • Field id: city, Field Type: selectbox, Default Value: rome|Rome,paris|Paris,london|London
  • Field id: subject, Field Type: textbox, Default Value:
  • Field id: message, Field Type: textarea, Default Value:

Let's customize the e-mail now. In order to make it work, make sure none of the fields are empty.

  1. Edit your form, and go to the Emails tab
  2. In the Email Form Data To: type {email},your@emailaddress.com
    • {email} will be replaced by the system with what the user typed in the field that has id=email
  3. In the Email Form Data From type your company e-mail address. We strongly advice you not to use the same email that you used in Email Form Data To, because on some servers, the message won't be sent to the same account (because From and To would be the same).
  4. Email From Name: type here the Mail from name. The name of your company would do just fine.
  5. Email Subject:type here the subject of your mail. You can simply add {subject} because we defined a field with the id = subject. This way, the e-mail will have whatever the user typed in the Subject field as a subject of the e-mail message
  6. Email Message: Here you could type something like:

Dear {fullname},
your submission has been registered. Here's a copy:

Fullname: {fullname}
Email: {email}
Phone: {phone}
City: {city}
Subject: {subject}
Message:

{message}

Notice that i used all the form fields defined above.

 

Read more on customizing the e-mails here


4 persons found this article helpful.


Was this article helpful?

Yes No
Sorry about that