• 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: Attach file to email depending on option selected

Attach file to email depending on option selected 13 years 9 months ago #10883

Hi all,

I need to attach different files to user emails depending on the options chosen from a drop down list. For instance, if the user selects option A, a file called a.pdf will be attached to the email. If he chooses option B, b.pdf will be attached.

Does anyone know what the custom script could look like?

Thanks for your answers in advance.

Matthias
The administrator has disabled public write access.

Re:Attach file to email depending on option selected 13 years 9 months ago #10899

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 722
  • Thank you received: 59
Hello,

You could try setting the dropdown items similar to "document name|description", for example:

a.pdf|option A

..then go to the "User emails" tab and use the dropdown's field placeholder in the "Location of file to attach" field. Please note that you will also have to set the path to the folder that contains your documents/pdfs.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Re:Attach file to email depending on option selected 5 months 2 weeks ago #43082

This is great and works well. I was just about to ask this very question.
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!