• 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 user mail conten based on dropdown-selection

Send user mail conten based on dropdown-selection 5 years 1 week ago #40097

  • dlm
  • dlm's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 71
HI there,

When submitting a form/
Can anyone advise whether it is possible to send the user-mail based on a dropdown selection.
You can decide what to fill in a content, but I'm searching for a multiple solution.

For example,
If dropdown selection is French -> send mail content in French.
Else is selection is English -> send mail content in English.

So, the mail content is (or can be) different than the form-language.

Thanks in advance!
The administrator has disabled public write access.

Send user mail conten based on dropdown-selection 5 years 1 week ago #40101

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

A specialized IF statement syntax is available for your email body that can be used to include/exclude content based on form submitted data.

You can basically check if the dropdown selection is French and enclose your desired French message, then check if the dropdown selection is English and enclose your English message. All of this done in the same email body.
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.
The following user(s) said Thank You: dlm

Send user mail conten based on dropdown-selection 5 years 1 week ago #40104

  • dlm
  • dlm's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 71
HI,

Great, it worked, in the mailings.

Can I also add this IF statement on the registration-message ?
(meaning, the user registration message in the plugin "Joomla! user registration"

Thanks for feedback
The administrator has disabled public write access.

Send user mail conten based on dropdown-selection 5 years 1 week ago #40106

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

You can't currently specify the IF statement syntax in your custom action activation message. However, you can consider setting your activation actions to "None (Joomla! default)" instead. This way, the activation messages will be the standard ones from the plugin's language file; more precisely:
; Activation messages
RSFP_REG_REGISTRATION_SAVE_SUCCESS="Thank you for registering. You may now log in using the username and password you registered with."
RSFP_REG_REGISTRATION_ACTIVATE_SUCCESS="Your Account has been successfully activated. You can now log in using the username and password you chose during the registration."
RSFP_REG_REGISTRATION_VERIFY_SUCCESS="Your email has been verified. Once an administrator approves your account, you will be notified by email, and you can login to the site."
RSFP_REG_REGISTRATION_ADMINACTIVATE_SUCCESS="The user's account has been successfully activated and the user has been notified about it."
 
; Confirmation email (when admin actives the user's account)
RSFP_REG_EMAIL_ACTIVATED_BY_ADMIN_ACTIVATION_BODY="Hello %s,\n\nYour account has been activated by an administrator. You can now login at %s using the username %s and the password you chose while registering."
RSFP_REG_EMAIL_ACTIVATED_BY_ADMIN_ACTIVATION_SUBJECT="Account activated for %s at %s"
Additional details on how you can translate these messages for your other languages can be found here.
This is not official customer support. To receive your support, submit a support ticket here.
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!