PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Simple User Notification Attachments

  1. I would like to send a PDF attachment to the people that submit one of my forms. I'm already sending a user notification, I just need to add an attachment to it. I saw the filter documentation but I'm having trouble making this work. What do I do?

    Posted 11 years ago on Monday May 14, 2012 | Permalink
  2. Was the what you were referencing?

    http://www.gravityhelp.com/documentation/page/Gform_user_notification_attachments

    Can you provide the code you used?

    Posted 11 years ago on Monday May 14, 2012 | Permalink
  3. Well I just added this to my themes function.php

    <?php
    add_filter("gform_user_notification_attachments", "add_attachment", 10, 3);
    ?>

    Posted 11 years ago on Monday May 14, 2012 | Permalink
  4. Well, thats about 1/3 the battle. ;)

    Check out this post for an example: http://www.gravityhelp.com/forums/topic/use-pre-selected-file-as-user-notification-attachment#post-53767

    Posted 11 years ago on Monday May 14, 2012 | Permalink
  5. Would I replace the /my_file.jpg with the full path to the file or just the path from the uploads:

    http://good2go2.iconixgp.com/wp-content/uploads/2012/05/ServiceAgreement.pdf

    or

    /2012/05/ServiceAgreement.pdf

    Posted 11 years ago on Monday May 14, 2012 | Permalink
  6. It looks like you would just put the filename. ServiceAgreement.pdf

    Honestly, I have not used this feature before, so you might need to do some testing to see which one works. But I'd stick with just trying filename first.

    Posted 11 years ago on Monday May 14, 2012 | Permalink
  7. Hello onestcorder, did you get this to work? I'm trying the same thing.

    Marc

    Posted 11 years ago on Wednesday November 14, 2012 | Permalink
  8. I figured this out. Didn't realize I had to keep "basedir" verbatim (I tried replacing it with the base directory).

    Posted 11 years ago on Wednesday November 14, 2012 | Permalink

This topic has been resolved and has been closed to new replies.