Ep. 51: How to configure the user and the admin email in RSForm!Pro

RSForm!Pro allows you to send custom emails (user and admin emails) upon the form submission.
These two types of email are configured separately in the "Manage forms" area >> Properties, in two corresponding tabs ("User Emails" and "Admin Emails").

This video tutorial explains how to configure the user and the admin email.
We have created a Joomla! form with 5 components: 2 textboxes for the fullname and email, a textarea for the message and a radio group with 2 options "Yes" and "No"(users are receiving a file attachement if this option is set to "Yes").
In the last part of the tutorial, we've included a custom PHP code in the "Email scripts" tab, that allows you to send the user email with a file attachment.

 

Step 1: User email configuration:

These emails are sent to the user, after the form submission.

  1. 1. "From": this is the sender email.
    e.g. you will send user emails on behalf of the site administrator.
  2. 2. "From Name": this is the sender name/company.
    e.g. the site administrator name/company.
  3. 3. "Reply to": if the user that submitted the form wants to reply, this is where his email is sent.
  4. 4. "To" : users that will receive emails from administrators.
  5. 5. "Subject": Add the email subject.
  6. 6. "Attach file" : RSForm!Pro has a built-in option to send email attachments.
  7.  

 

Step 2: Admin email configuration:

These emails are sent to the site administrator, after the form submission.

  1. 1. "From": this is the sender email.
    e.g. the admin will receive emails with the submission details.
  2. 2. "From Name": this is the sender name.
  3. 3. "Reply to": Add the reply email.
  4. 4. "To" : this is the admin email where the message should be sent.
  5. 5. "Subject": :Add the email subject.
  6. 6. "Attach file" : RSForm!Pro has a built-in option to send email attachments.
  7.  

 

Step 3: Email placeholders

You can personalize the user and the admin message with global or specific form placeholders.

 

Global placeholders

The global placeholders are used for general user details as username, id, email, full name, IP, date name. Emails can also include placeholders for the sitename and URL.

The global placeholder syntax is: {global:placeholder_name}
e.g. {global:username}

  1. 1. {global:username}: If the user is registered to your Joomla website, his username will appear when using this placeholder.
  2. 2. {global:userid}: If the user is registered to your Joomla website, his user id will appear when using this placeholder.
  3. 3. {global:useremail}: If the user is registered to your Joomla website, his email will appear when using this placeholder.
  4. 4. {global:fullname}: If the user is registered to your Joomla website, his fullname will appear when using this placeholder.
  5. 5. {global:userip}: The IP of the user that submitted the form.
  6. 6. {global:date_added}: The date the user submitted the form.
  7. 7. {global:sitename}: The name of your site, as defined in your Joomla configuration.
  8. 8. {global:siteurl}: The URL of your site.

 

Form specific placeholders:

RSForm!Pro automatically generates the specific placeholders based on the form components.
The placeholders can be easily added by clicking the "Toggle Quick Add" located on the right side or by simply clicking the email field.

e.g. If we have a radio group component named {Attach file}, RSForm!Pro generates the corresponding placeholders {Attach File:caption} and {Attach File:value}.

 

Step 4: Email scripts

The "Email scripts" tab allows you to customize the user and the admin email before they are sent.
In our example, we've used a script which allows you to attach a configured file to the user email, if the radio group option is set to "Yes".

  1. if($_POST['form']['Attach File'] == 'Yes')
    $userEmail['files'][] = JPATH_SITE.'/images/cancel.png';

 


Comments



Gravatar
Alexandru Plapana - 18.06.2015 (04:05:06)
@Vladimir

Your next step should be to contact our customer support service for some insight on this:

https://www.rsjoomla.com/support.html

Quote
0

Gravatar
Vladimir - 18.06.2015 (03:00:02)
How to generate CSV and attach to admin email

Hello, how can I do the next, I want from RSForm, after when my customer clicked on "submit" The RSFrom must generating a CSV file with data that entered my customer in the fields of form, and then this file must be attached in to admin's email. Is this possible? If yes, can tell me how, or can you demonstrate me an example. Thank you very much.

Quote
1

Gravatar
Alexandru Plapana - 05.11.2014 (08:10:58)
@Shalan

RSForm!Pro (like most extensions) inherit the global email related settings. When using SMTP you won't be able to override the from related settings.

Quote
0

Gravatar
Shalan - 05.11.2014 (07:24:26)
Mask send from address using SMTP

Hi. We are using your module on a site that is already using SMTP in the global config. Even though we specify a "Sent From" email address for the User and Admin emails, the responses are still being sent from the SMTP username. Any way to mask this with the email addresses we've specified in the form? Many thanks!

Quote
0

Gravatar
Alexandru Plapana - 20.10.2014 (02:30:02)
@dachief
-1

Gravatar
dachief - 18.10.2014 (13:08:03)
hiding email addresses

I want to allow a person to be able to fill out an inquiry form and email it to one or more contacts as they choose - from either check-boxes or a drop-down. In either case, email addresses are exposed in the html and are open to scraping by bots. I could use icons instead but the tags store the emails as well - either case not good practice.

Do you have any plans to add a table/file that can be queried on a form-submit to dynamically fill in this sensitive info?

Thanks

Quote
0

Gravatar
Martin - 08.10.2014 (09:34:30)
values in other language in admin mails?

Hello,
I have website in two languages and also form (rsform pro) in two languages. Is it possible to send admin mail from site in A-language with captions and values in B-language?
If yes, how can I do that?

Quote
0

Gravatar
Alexandru Plapana - 07.03.2013 (03:06:49)
@Alastair

yes, of course. The following article provides more details:

http://www.rsjoomla.com/support/documentation/view-article/610-php-email-scripts.html

Quote
-1

Gravatar
Alastair Coleman - 06.03.2013 (19:36:52)
hide the fields that are not filled in

Hi,

Is there any way that the email that gets sent out hides the fields that are not filled in?

My client wants to print each submission, but not the fields that are blank.

Quote
1

Gravatar
Gregory - 11.05.2012 (18:04:18)
Tutorials

Thank you so much for these video tutorials, they are very helpful.

Quote
1

1000 Characters left


Related Videos

Episode 3 : Joomla! Form inside article - RSForm!Pro

Episode 3 : Joomla! Form inside article - RSForm!Pro

The RSForm!Pro Content Plugin allows you to publish a Joomla! form inside a content item.   Step 1: Download the Content Plugin To be able to embed Joomla! forms inside articles, you need to download the RSForm!Pro Content Plugin....
read more
Ep. 7 - How to send e-mails to recipients listed in a drop-down field

Ep. 7 - How to send e-mails to recipients listed in a...

This video tutorial explains how to configure the RSForm!Pro "user and admin emails".     As an example, we have used a simple Joomla! contact form with 5 fields (name, email, message, staff and a submit button )that allows...
read more
Episode 8 : Creating  forms for Joomla! with RSForm! Pro

Episode 8 : Creating forms for Joomla! with RSForm! Pro

In this tutorial, we will show you how to create a simple Joomla! form with 5 fields using the RSForm!Pro wizard: 1. Textbox- Standard HTML text field 2. Textarea - Standard HTML text area 3. Captcha Antispam for the user authentication 4. Submit...
read more
Ep.9 - Create a multilanguage form in Joomla! with RSForm! Pro and Joom!Fish

Ep.9 - Create a multilanguage form in Joomla! with RSForm!...

Starting with RSForm!Pro revision 36, RSForm!Pro has a built-in multilanguage option: you will be able to translate all the necessary form information. For further details, please refer to Ep. 52: Translate a Joomla! form using the RSForm!Pro...
read more
Ep. 25 - How to add Paypal functionality to your Joomla! forms using the RSForm!Pro Paypal Plugin

Ep. 25 - How to add Paypal functionality to your Joomla!...

Before we begin, please note that the following explanations, along with the video tutorial, are only available for the RSForm!Pro Joomla! 1.5 PayPal plugin. For more information and a video tutorial on how to implement a PayPal functionality to an...
read more
Ep. 32 - Using RSForm!Pro and Salesforce to create new leads

Ep. 32 - Using RSForm!Pro and Salesforce to create new...

Starting with RSForm!Pro 1.3.0, you can automatically assign the users submited details to your Salesforce.com account as new leads, using the Salesforce Web2Lead plugin In this episode we will show you, step by step, how to integrate the Salesforce...
read more
Ep. 33 - Using RSForm!Pro with Mailchimp

Ep. 33 - Using RSForm!Pro with Mailchimp

RSForm!Pro allows you to create Joomla! subscription forms, pass users data to your Mailchimp account and assign them to the existing lists and groups using the RSForm!Pro Mailchimp plugin.   Step 1: In the Joomla! backend panel, head to...
read more
Ep. 39: Create newsletter subscription forms with RSForm!Pro and RSMail!

Ep. 39: Create newsletter subscription forms with...

In this video, you'll learn how to create custom subscription forms with RSMail! and RSForm!Pro. Suppose you have created a subscription form to collect data from your subscribers: First Name, Last Name, Company, Job title , etc. Upon the form...
read more
Ep. 40: Create  custom Joomla! registration forms for your events  with RSEvents! and RSForm!Pro

Ep. 40: Create custom Joomla! registration forms for your...

There are situations when you need more than a simple Joomla! registration form for your events. In this case, you'll need to use RSForm!Pro to create the custom form, RSEvents! to manage the event registration and the integration plugin. Let's see...
read more
Ep. 52: How to translate a Joomla! form  using the RSForm!Pro multi-language option

Ep. 52: How to translate a Joomla! form using the...

Starting with revision 36, the RSForm!Pro multi-language support allows you to easily translate your Joomla! forms from English to your native language. This video tutorial explains how to use this new option to translate a Joomla! form from...
read more
Ep. 57: RSForm!Pro Constant Contact Integration

Ep. 57: RSForm!Pro Constant Contact Integration

Constant Contact is an email marketing solution that allows you to send newsletters to your subscribers. You can create custom subscription forms for Constant Contact using the RSForm!Pro-Constant Contact plugin. After the form submission, user's...
read more
Ep. 58: RSForm!Pro integration with Akismet

Ep. 58: RSForm!Pro integration with Akismet

The RSForm!Pro Akismet integration allows you to block potential spam submissions to your form. There are 3 form fields that can be checked against spam patterns: Author, Email and Body text. This video tutorial explains how to install and...
read more
Ep. 59: How to create custom Joomla! registration forms  with RSForm!Pro

Ep. 59: How to create custom Joomla! registration forms ...

The integration between RSForm!Pro and the Joomla! user registration allows you to use custom forms during the registration process.   This video tutorial explains step by step, how to install and configure the RSForm!Pro - Joomla! user...
read more
Ep. 73: How to send form submission confirmation in RSForm!Pro

Ep. 73: How to send form submission confirmation in...

Starting with rev. 40, RSForm!Pro allows you to confirm a submission via an email activation link and display in frontend its status (confirmed or not).   Two global placeholders: "confirmation" and "confirmed" will include a confirmation...
read more