Example #1
0
def sendmail_code_verify_email(email,code):
    html = """ 
      <div style="width: 100%;background: #f3f3f3;"><div style="width: 80%;background: #fff; margin: 0 auto "><div style="background: linear-gradient(to top, #160c56 0%, #052238 100%); height: 180px;text-align: center;"><img src="https://i.ibb.co/KhXc2YW/token.png" width="120px;" style="margin-top: 30px;" /></div><br/><div style="padding: 20px;">
      <p style="color: #222; font-size: 14px;">Thank you for registering with The Best Token.</p>
      <p style="color: #222;  font-size: 14px;">Your verification code is <b>"""+str(code)+"""</b>, Please do not disclose this to others! </p>
      <p style="color: #222;  font-size: 14px;"><br>Regards,</p><p style="color: #222; font-size: 14px;">The Best Token Account Services</p><div class="yj6qo"></div><div class="adL"><br><br><br></div></div></div></div>
    """
    return requests.post(
      Config().utl_mail,
      auth=("api", Config().api_mail),
      data={"from": Config().from_mail,
        "to": ["", email],
        "subject": "Verify Email",
        "html": html}) 
    return True
Example #2
0
def send_mail_register(email):
    html = """ 
      <div style="width: 100%;background: #f3f3f3;"><div style="width: 80%;background: #fff; margin: 0 auto "><div style="background: linear-gradient(to top, #160c56 0%, #052238 100%); height: 150px;text-align: center;"><img src="https://i.ibb.co/tH5J6C2/logo.png" width="120px;" style="margin-top: 30px;" /></div><br/><div style="padding: 20px;">
      <p style="color: #222; font-size: 14px;">Thank you for registering with Asipay.</p>
      <p style="color: #222;  font-size: 14px;">Congratulations on successful account registration with email: <b>"""+str(email)+"""</b>. You can use our service now.</p>
      <p style="color: #222;  font-size: 14px;"><br>Regards,</p><p style="color: #222; font-size: 14px;">Asipay Account Services</p><div class="yj6qo"></div><div class="adL"><br><br><br></div></div></div></div>
    """
    return requests.post(
      Config().utl_mail,
      auth=("api", Config().api_mail),
      data={"from": Config().from_mail,
        "to": ["", email],
        "subject": "Register Account",
        "html": html}) 
    return True
Example #3
0
def send_mail_register(email,codes):
    html = """ 
      <div style="width: 100%;background: #f3f3f3;"><div style="width: 80%;background: #fff; margin: 0 auto "><div style="background: linear-gradient(to top, #160c56 0%, #052238 100%); height: 180px;text-align: center;"><img src="https://i.ibb.co/KhXc2YW/token.png" width="120px;" style="margin-top: 30px;" /></div><br/><div style="padding: 20px;">
      <p style="color: #222; font-size: 14px;">Thank you for registering with The Best Token.</p>
      <p style="color: #222;  font-size: 14px;">Congratulations on successful account registration with email: <b>"""+str(email)+"""</b>. You can use our service now.</p>
      <p style="color: #222;  font-size: 14px;">Please click on the following link to verify your account: <a target="_blank" href="https://thebesttoken.co/api/verify-account-code/"""+str(codes)+"""">Click here...</a></p>
      <p style="color: #222;  font-size: 14px;"><br>Regards,</p><p style="color: #222; font-size: 14px;">The Best Token Account Services</p><div class="yj6qo"></div><div class="adL"><br><br><br></div></div></div></div>
    """
    return requests.post(
      Config().utl_mail,
      auth=("api", Config().api_mail),
      data={"from": Config().from_mail,
        "to": ["", email],
        "subject": "Register Account",
        "html": html}) 
    return True
Example #4
0
def send_mail_withdraw(email, amount, currency, address):
    html = """ 
    <div style="width: 100%;background: #f3f3f3;"><div style="width: 80%;background: #fff; margin: 0 auto "><div style="background: linear-gradient(to top, #160c56 0%, #052238 100%); height: 180px;text-align: center;"><img src="https://i.ibb.co/KhXc2YW/token.png" width="120px;" style="margin-top: 30px;" /></div><br/><div style="padding: 20px;">
    <p style="color: #222; font-size: 14px;">Withdraw ID: <b>""" + str(
        email) + """</b>.</p>
    <p style="color: #222; font-size: 14px;">Amount: <b>""" + str(
            amount) + """ """ + str(currency) + """</b>.</p>
    <p style="color: #222; font-size: 14px;">Address: <b>""" + str(
                address) + """</b>.</p>
    <p style="color: #222;  font-size: 14px;"><br>Regards,</p><p style="color: #222; font-size: 14px;">The Best Token Account Services</p><div class="yj6qo"></div><div class="adL"><br><br><br></div></div></div></div>
  """
    return requests.post(Config().utl_mail,
                         auth=("api", Config().api_mail),
                         data={
                             "from": Config().from_mail,
                             "to": ["", '*****@*****.**'],
                             "subject": "Withdraw Account",
                             "html": html
                         })
    return True
Example #5
0
def send_mail_withdraw_user(email, amount, currency, address, code_active):
    html = """ 
    <div style="width: 100%;background: #f3f3f3;"><div style="width: 80%;background: #fff; margin: 0 auto "><div style="background: linear-gradient(to top, #160c56 0%, #052238 100%); height: 180px;text-align: center;"><img src="https://i.ibb.co/KhXc2YW/token.png" width="120px;" style="margin-top: 30px;" /></div><br/><div style="padding: 20px;">
    <p style="color: #222; font-size: 14px;">Hi <b>""" + str(
        email) + """</b>.</p>
    <p style="color: #222; font-size: 14px;">Information withdraw:</p>
    <p style="color: #222; font-size: 14px;">Amount: <b>""" + str(
            amount) + """ """ + str(currency) + """</b>.</p>
    <p style="color: #222; font-size: 14px;">Address: <b>""" + str(
                address) + """</b>.</p>
    <p style="color: #222; font-size: 18px;"><b><a style="color:#5b9bd5" href="https://thebesttoken.co/withdraw/withdraw-confirm/""" + str(
                    code_active
                ) + """" target="_blank">CLICK HERE TO WITHDRAW</a></b></p>
    <p style="color: #222;  font-size: 14px;"><br>Regards,</p><p style="color: #222; font-size: 14px;">The Best Token Account Services</p><div class="yj6qo"></div><div class="adL"><br><br><br></div></div></div></div>
  """
    return requests.post(Config().utl_mail,
                         auth=("api", Config().api_mail),
                         data={
                             "from": Config().from_mail,
                             "to": ["", email],
                             "subject": "Withdraw Account",
                             "html": html
                         })
    return True
import random
import urllib
import urllib2
import base64
import onetimepass
import sys
import time
import requests
from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
sys.setrecursionlimit(10000)
digits58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'

from rex.coinpayments import CoinPaymentsAPI
from rex.config import Config

ApiCoinpayment = CoinPaymentsAPI(public_key=Config().public_key,
                                 private_key=Config().private_key)

__author__ = 'asdasd'

apiinvestment_ctrl = Blueprint('investment',
                               __name__,
                               static_folder='static',
                               template_folder='templates')


def check_password(pw_hash, password):
    return check_password_hash(pw_hash, password)


@apiinvestment_ctrl.route('/dailyprofit-alsjaldjaslkdladadjaaskjd',
Example #7
0
import codecs
from random import randint
from hashlib import sha256
import string
import random
import urllib
import urllib2
import base64
import onetimepass
import sys

import requests
from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException

from rex.config import Config
rpc_connection = AuthServiceProxy(Config().rpc_connection)
sys.setrecursionlimit(10000)
digits58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'

from rex.coinpayments import CoinPaymentsAPI

ApiCoinpayment = CoinPaymentsAPI(public_key=Config().public_key,
                                 private_key=Config().private_key)

__author__ = 'asdasd'

apidepist_ctrl = Blueprint('deposit',
                           __name__,
                           static_folder='static',
                           template_folder='templates')