We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10489
    • 93 Posts
    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.

    Thanks
      • 30912
      • 463 Posts
      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>
      
      </from>
        • 10489
        • 93 Posts
        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?

        Thanks
          • 30912
          • 463 Posts
          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 :/