[Drupal Webform] How to add an attachment to the confirmation email of a submission in a webform.
Drupal Webform can be used to create forms and track the results of submissions in your Drupal installation. Drupal Webform can also be used to send confirmation emails to users when they have successfully completed submission. There could be instances where you might want to send an attachment along with confirmation email. Read on to find out how to add an attachment to the confirmation email of a submission in a Drupal Webform.
Follow the steps below.
- We need the following modules for this to work.
- Drupal Mimemail module (Be sure to also enable Mime Mail Action)
- Drupal Rules module
- Drupal Webform Rules module
- We are going to use Rules to do this.
- Firstly you have to create a new rule for "After a webform has been submitted"
- Next use "Select a webform" as a condition and select your webform
- Now select the mimemail "Send an HTML mail to an arbitrary mail address" action
If all this has been setup, you can use tokens to send the email to an address the user provides in the form. Add your attachments in your attachments box. Just make sure that if anonymous users are submitting the form they need the "send arbitrary files" permission or the attachment won't be sent.
The easiest way to solve a Drupal issue is to hand it to the Drupal experts. Do you need professional help in building your Drupal site? We can provide a wide range of Drupal services to help you deploy your Drupal site easily and quickly. Get in touch with us to know more.
Reference: http://drupal.org/node/1729004