Download & Extend

Automatically email the PDF upon generation

Project:Fill PDF
Version:7.x-1.x-dev
Component:Code
Category:feature request
Priority:major
Assigned:Unassigned
Status:active
Issue tags:rules integration

Issue Summary

Splitting this from #417510: A couple of questions about functions/features..

Allow automatic sending of an email after generating a PDF.

My preference on how to achieve this is Rules integration via a "PDF has been generated" event to which Fill PDF can supply the PDF data or file and the node/submission IDs of the content that was used. Can I get a show of hands on for whom that would be a solution and who envisions this functionality occurring in some other way? Does anyone know offhand if Rules' emailer can do attachments?

I'd like to hear both from people who are for a Rules dependency and those against in orer to figure out the best way to move forward on this.

Comments

#1

My hand is up. I believe Rules integration as mentioned would be one of the best ways to accomplish this as well. Unfortunately, i do not know offhand if Rules' emailer can do attachments, but it looks to be possible to email a link to the PDF on the website. But I doubt that will be acceptable for security reasons for some users. Regardless, here is a thread I found related to this:
http://drupal.org/node/968256

#2

I just found the "notifications files" module: http://drupal.org/project/notifications_files which promises the ability to send attached files in emails. Perhaps that could module be integrated as a dependency for this functionality? Just a suggestion!

#3

Thanks SchwebDesign. I'll check out these modules.

Patches are highly welcome for this. By my unscientific estimation, it's the most requested feature currently.

I'll try to do this when I have some time.

#4

Hey guys - this feature is requested a lot, so I have created a ChipIn campaign to get it funded basically. Pitch in if you're interested in seeing this happen.

http://wizonesolutions.chipin.com/fill-pdf-send-via-email-featureguide

Thanks in advance!

#5

I've gotta renew the ChipIn for this. Another option is for someone to sponsor (aka pay) me to work on it, as has been done for the two most recent features - if you were wondering why those got done and not this one :) Hit me up on the contact form if you want to do this. Or just wait, and I'll do this when there's time.

#6

Version:6.x-1.x-dev» 7.x-1.x-dev

New features are developed on Drupal 7 first.

From recent experience with this, a workaround for Webforms at least is simply to include a link to the filled PDF. I'm not sure if Webform has hooks for third-party modules to provide tokens, but a token that would produce a link to the PDF would be useful. For now, http://%server[HTTP_HOST]/fillpdf?fid=<fid>&webform[nid]=%nid&webform[sid]=%sid somewhere in a custom email template does the trick pretty nicely.

The Notification Rules module mentioned earlier doesn't have a Drupal 7 version. I think that a default rule that provides this functionality and a Rules event when a PDF is filled would be the correct solution, so that's what I'm going to pursue.

This is therefore dependent on #1266174: Rules integration.