flask init-db
flask init-admin -u username -p password
Create templates named with prefix spam_
Example: spam_smartphone5g.html
Put templates on app/templates/ directory.
Add {{ url_coupon }}
on html template
Example:
<html>
<head><title>Coupon Paypal</title></head>
<body>
<a href="{{ url_coupon }}">Redeem coupon</a>
</body>
</html>
app.__init__.py - update with your mail "SERVER", "PORT", "SENDER", "DDNS"
- Define vars
(Linux)
export [email protected]
export DDNS=muce.ddns.net:587
export MAIL_USERNAME=usernameEmail
export MAIL_PASSWORD=p@sSWorD
(Windows)
set [email protected]
set DDNS=muce.ddns.net
set MAIL_USERNAME=username
set MAIL_PASSWORD=p@sSWorD