• 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 copy email to user only when he wants that

Send copy email to user only when he wants that 12 years 2 months ago #21475

Hello,

How can I make a checkbox for a user who wants to get an email? So if the checkbox is not filled by the user then the email must not be send.
The administrator has disabled public write access.

Send copy email to user only when he wants that 12 years 1 month ago #22270

  • mmcbv
  • mmcbv's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi Kees/Dag Kees?,

Did you find a solution for this already?
I think it must be possible with own coding, But I'm no programmer.

wkr

Jos
The administrator has disabled public write access.

Send copy email to user only when he wants that 12 years 1 month ago #22284

  • silviup
  • silviup's Avatar
  • OFFLINE
  • Moderator
  • Posts: 309
  • Thank you received: 49
There is no default feature for this, but it can be achieved using custom scripting. It would be best to use a radio group instead of a checkbox, as radio groups only allow a single selection and, this way, you can avoid having both options selected. Assuming that the radio group items are defined as follows:

no|No, I don't want to receive an email
yes|Yes, please send me an email

add the following script in the 'Scripts called before the User email is sent' area of the 'PHP Email Scripts' tab:
if($_POST['form']['Send email']=="yes") $userEmail['to']=$_POST['form']['Email'];
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: 12 years 1 month ago by silviup.
The administrator has disabled public write access.
The following user(s) said Thank You: creativedesign

Send copy email to user only when he wants that 11 years 6 months ago #25372

Help
I test
yes or no
i receive a copy.
Grrrrr
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!