I have a particular use case where I want to be able to convert an existing list of Flags into a file and attach this to an email sent to the admin and user.

I currently have a working Flags list set up. What I would like to do is to covert this view to a file and be able to email it to my user and myself (admin) on the forms submission.

I envision implementing this through 1) creating the Flag list 2) converting to file 3) emailing this as an attachment to an email through the webform.

I've found modules that deal with data export, but I need some guidance on how to implement this. I suspect I may have to build my own module, but I'm only starting to dive into how to do this. Any advice on where to jump off would be greatly appreciated.

I imagine this will take the following steps: 1) check that flag list is populated 2) if flag list is populated write it to file 3) upon form submit, email a copy to user/admin

1 Answer 1

  1. You have to use Views PDF module to output of views as PDF.
  2. Use Mime Mail module to send email with attachment.

Write own custom logic to action performed or any rules.

Custom function to send mail as attachment visit here.

You may also check this

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.