File size: 577 Bytes
966adb2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2f4bfdb
 
966adb2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from flask import Flask, render_template, request
from emailpy import *
app = Flask(__name__)

@app.route('/')
def index():
    return render_template('index.html')
@app.route('/validate', methods=['POST'])
def validate():
    firstname = request.form['firstname']
    lastname = request.form['lastname']
    domin = request.form['domin']
    email = run(firstname, lastname, domin)
    send = f'The delivarible Email Address of the person is {email}'
    return render_template('index.html', email=send)

if __name__ == '__main__':
    app.run(host="0.0.0.0", port=7860)