• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Multilang site and admin email sent

Multilang site and admin email sent 10 years 3 months ago #30121

  • bmwdejf
  • bmwdejf's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi all,
I need advice on setting RSForm Pro.

I have site in two language CZ and SK and form are too in CZ and SK version.

I have website in two language CZ and SK and forms are too in CZ and SK version.

But now I have problém because CZ version form I need sent on email This e-mail address is being protected from spambots. You need JavaScript enabled to view it and SK version form I need sent on email This e-mail address is being protected from spambots. You need JavaScript enabled to view it .

Is there any way to adjust this?

Thanks for any reply

David
The administrator has disabled public write access.

Multilang site and admin email sent 10 years 3 months ago #30131

  • silviup
  • silviup's Avatar
  • OFFLINE
  • Moderator
  • Posts: 309
  • Thank you received: 49
Hi David,

Since RSForm!Pro does not allow translating the 'To' field in the User / Admin emails, you will need to implement a custom script that will adjust the 'To' field in accordance with the language that is being used in the frontend.

I will assume that you wish to apply these changes for the Admin email.

Head to Components >> RSForm!Pro >> Manage Forms >> edit your form >> Properties >> PHP Email Scripts and add the following code in the 'Script called before the Admin Email is sent' area:
$lang = JFactory::getLanguage();
$language=$lang->getTag();
if ($language=="cs-CZ")
{
	$adminEmail['to']="emailcz@email.cz";
}
elseif ($language=="sk-SK"){
	$adminEmail['to']="emailsk@email.cz";
}

You can read more about the PHP Email Scripts feature here:

www.rsjoomla.com/support/documentation/v...p-email-scripts.html
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
Last Edit: 10 years 3 months ago by silviup.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!