• 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: Send Directory emails only when certain field has

Send Directory emails only when certain field has 10 years 7 months ago #28912

Is it possible to only send directory emails when a certain field has a specific value? In other words, if I edit the values in directory the emails will only be sent when one of those fields, a dropdown, has a specific value?
The administrator has disabled public write access.

Send Directory emails only when certain field has 10 years 7 months ago #28914

Anyone?
Last Edit: 10 years 6 months ago by phonroth701.
The administrator has disabled public write access.

Send Directory emails only when certain field has 10 years 6 months ago #28993

I figured it out for my application. I just added a dummy email address to to the Script called before the Directory Emails based on the value of the field. In other words if my field has a certain value, the Directory emails are sent to the dummy address otherwise they are sent to the user. Below is the code I added to the Script called before the Directory Emails this applies to a dropdown field:
if($_POST['form']['my_form_field_name'][0] == 'my_form_field_value')
  $directoryEmail['to'] = 'my_dummy@email.com';
The administrator has disabled public write access.

Send Directory emails only when certain field has 6 years 1 month ago #38959

Unfortunately, this will not work if you have created multiple directory emails. I am currently working with support to find a resolution.
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!