We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15309
    • 30 Posts
    i am stuck at trying to send a file through mail...
    I need my users to submit their resume and those resumes should me mailed to me(site administrator) as an email attachment.

    can anyone suggest how to achieve it in modx.. i tried to dig.. eform but no luck.

    thanks
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The documentation that comes with eform has exactly this as a sample.
      <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>
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 15309
        • 30 Posts
        thanks It worked,

        but I am saving the whole form into database as well, how can i save the file in database as well...