How can I attach more than a 5MB PDF report in an email notification?

  • sergeyknyazhentsev
    Asked on February 20, 2024 at 6:38 AM

    Hi there,


    I have a form that has several PDF templates.

    I want to share the form submission using one of them. The resulting PDF with this template is more than 5MB, so Jotform can't email it.

    {pdf_link} variable gives a link to first PDF template, not the one I need to use

    I tried to use a link of following format

    https://www.jotform.com/pdf-editor/view/{form_id}/{report_ID}/{id}, as advised here

    https://www.jotform.com/answers/2482818-how-can-i-link-a-specific-pdf-document-to-link-on-the-thank-you-page

    But it only works for people logged in to Jotform. I want a link that would be publicly available.


    How can I achieve that?



    Cheers,

    Sergey

  • Mary_Ed JotForm Support
    Replied on February 20, 2024 at 7:01 AM

    Hello Sergey,

    Thanks for reaching out to Jotform Support and we’re sorry you’re having issues directing your form respondents to specific PDF templates in your form. I understand the issue, but I’ll need a bit of time to look into this and work out a solution. I’ll get back to you as soon as I can.

    Thanks for your patience and understanding, we appreciate it.

  • Mary_Ed JotForm Support
    Replied on February 20, 2024 at 8:15 AM

    Hello Sergey,

    Thanks for patiently waiting. I looked at the link provided on that thread, but it appears to be no longer working. There is no option to increase the file size of the PDF attachment to improve the email's reliability. If the total size of the attachment is more than 5 MB then the submission’s emails will be sent without attachments. As a workaround, try to set up your own SMTP so you can attach up to 25MB to the email notification. Let me show you how:

    1. First, we will use the App Password Generator, since the password you should use to set up your SMTP should be the one generated by the password app and not your Jotform password. 

    • Click here to sign in to your Google account and access the App Password Generator.
    • In the list of available apps, click on Mail.
    • In the device list, click on Other.
    • Enter your Custom Name, such as Jotform.

    Check out this link to see how it's done.

    • Click on the Generate button.
    • Copy and save the password to your computer.
    • Finally, click the Done button.

    Please make sure that you save the password to your computer so you can use it again later. If you don't save it, you'll have to generate a new one again because Google doesn't let users view their passwords after they click the Done button. 

    2. Now, let me show you how to add the Sender email.

    • Go to your My Account page, and click on Settings, or visit here directly.
    • Click on the Add Sender Email button.

    How to set up an SMTP? Image 1 Screenshot 31 Screenshot 10 Screenshot 10 Screenshot 10 Screenshot 10

    Enter the following information:

    • Email Address: {your email address}
    • Hostname: smtp.gmail.com
    • Port: 587
    • Username: {your Gmail address}
    • Password: {your Gmail or app-specific password}
    • Security Protocol: TLS

    1636352236 6188c0ece39d4  Screenshot 43 Screenshot 42 Screenshot 21 Screenshot 21 Screenshot 21 Screenshot 21

    • When you're finished, click on the Send Test Email button to make sure that everything is working. If it works, click on the Add Email button. If not, please check the details again and correct any errors.

    You might also want to check out this guide about How to Use Your Gmail Account as Your Email Sender via SMTP.

    Give it a try and reach out again if you have any other questions.

  • sergeyknyazhentsev
    Replied on February 20, 2024 at 10:19 AM

    Hi Mary,
    thanks for that workaround, will try it