app.py
def contact():
    """
        Function is invoked when requests is made to url: dommainname/contact
        :return: a rendered template for the about page
        """

    # Accesses the contact form and renders it in the contact html file
    # Submits the filled form and sends the values in a mail to a configured email address
    form = forms.ContactForm()
    if form.validate_on_submit():
        flash("Thanks for reaching out.")
        contact_mailer = mailer.Mailer(form.first_name.data, form.last_name.data, form.email.data, form.message.data)
        contact_mailer.send_messages()
        return redirect(url_for("index"))
    return render_template("contact.html", form=form)

        Function is invoked when requests is made to url: dommainname/contact
        :return: a rendered template for the about page
        
Function is invoked when requests is made to url: dommainname/contact
Function is invoked when requests is made to url : dommainname / contact
def contact():
    form = forms.ContactForm()
    if form.validate_on_submit():
        flash("Thanks for reaching out.")
        contact_mailer = mailer.Mailer(form.first_name.data, form.last_name.data, form.email.data, form.message.data)
        contact_mailer.send_messages()
        return redirect(url_for("index"))
    return render_template("contact.html", form=form)
def contact ( ) : form = forms . ContactForm ( ) if form . validate_on_submit ( ) : flash ( "Thanks for reaching out." ) contact_mailer = mailer . Mailer ( form . first_name . data , form . last_name . data , form . email . data , form . message . data ) contact_mailer . send_messages ( ) return redirect ( url_for ( "index" ) ) return render_template ( "contact.html" , form = form )
Function is invoked when requests is made to url: dommainname/contact
Function is invoked when requests is made to url : dommainname / contact
"""
        Function is invoked when requests is made to url: dommainname/contact
        :return: a rendered template for the about page
        """ # Accesses the contact form and renders it in the contact html file # Submits the filled form and sends the values in a mail to a configured email address
a rendered template for the about page
a rendered template for the about page