Skip to content
    Send Email From Form Template@NateDhaliwal
    LICENSE.md
    main.py
    README.md
    Packager files
    poetry.lock
    pyproject.toml
    Config files
    .replit
    replit.nix

    This is a feedback form template which will send an email to you.

    To use this template, comments are provided throughout the code to provide a clear view of the code.

    How to use this template:

    1. You will have to make 2 Secrets, mailPassword and mailUsername. The wording must be exact or else the program will fail.
    2. The mailPassword Secret will contain the Gmail app password for your account. How to get it:

    • Go to your Google Account and go to the 'Security'.
    • Then, go to the 'How you sign in to Google' section and click on '2-Step Verfication'.
    • Scroll to the bottom of the page to the 'App Passwords' section, and click on it.
    • Under 'Select app', choose 'Other' and enter 'Replit' as the name.
    • Click on 'Generate' and the code given (remove all spaces) is your mailPassword.

    1. Once you have gotten your app password, add it as a Secret called mailPassword.
    2. Next, store your email address (with domain and all) as a new Secret called mailUsername.
    3. You are done! You will now receive emails when the form is submitted.

    Note that as all webpages are in a HTML file, CSS styling can be added. HTML files are found in the /public folder.

    Have fun!