On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Hi All,

    I hope someone can assist with this.

    I am trying to set up a 'send to friend' function.
    Basically the user clicks the 'send to friend' button, is taken to a new page and puts in the email address of a friend.
    An email is then sent to the friend with a PDF attachment attached to the email.

    Any help with how to set this up would be greatly appreciated.

    • try this: untested:

      <form method="post" action="[~[*id*]~]" id="EmailForm" name="EmailForm" enctype="multipart/form-data">
       <p><label for="attachment">Attachment</label>
              <input class="field" type="file" name="attachment" eform="Attachment:file:0:Only upload of text documents are supported:#LIST pdf,txt,doc " /></p>
      • Thank you....however that's not quite what I meant.

        I have product pages and I have created a PDF for each page.
        I want to allow the browser to put in a friends email address and have modx send the friend an email with the product PDF attached.
        Almost like a share this page with a friend function.

        Does that make sense?

        • Ah right I gotcha, its not something ive seen in the default eForm setup sad

          however you could have an emailTo field:

          you could try something along the lines in here - its the only thing ive seen that might match your requirements http://forums.modx.com/thread/46754/dynamic-amp-to

          Sorry :/