# Path: fooltrader/settings.py
# SMTP_HOST = 'smtpdm.aliyun.com'
# 
# SMTP_PORT = '80'
# 
# EMAIL_PASSWORD = ''
# 
# EMAIL_USER_NAME = ''
# 
# WEIXIN_APP_ID = ""
# 
# WEIXIN_APP_SECRECT = ""


import email
import json
import logging
import smtplib
import requests
import schedule
from email.header import Header
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from fooltrader.settings import SMTP_HOST, SMTP_PORT, EMAIL_PASSWORD, EMAIL_USER_NAME, WEIXIN_APP_ID, WEIXIN_APP_SECRECT
            "touser": to_user,
            "template_id": template_id,
            "url": "http://www.foolcage.com",
            "data": {
                "first": {
                    "value": title,
                    "color": "#173177"
                },
                "keyword1": {
                    "value": security_name,
                    "color": "#173177"
                },
                "keyword2": {
                    "value": current_price,
                    "color": "#173177"
                },
                "keyword3": {
                    "value": '{:.2%}'.format(change_pct),
                    "color": "#173177"
                },
                "remark": {
                    "value": "会所嫩模 Or 下海干活?",
                    "color": "#173177"
                }
            }
        }

        return the_json



# Path: fooltrader/settings.py
# SMTP_HOST = 'smtpdm.aliyun.com'
# 
# SMTP_PORT = '80'
# 
# EMAIL_PASSWORD = ''
# 
# EMAIL_USER_NAME = ''
# 
# WEIXIN_APP_ID = ""
# 
# WEIXIN_APP_SECRECT = ""


# Path: fooltrader/bot/action/msg_action.py
import email
import json
import logging
import smtplib
import requests
import schedule
from email.header import Header
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from fooltrader.settings import SMTP_HOST, SMTP_PORT, EMAIL_PASSWORD, EMAIL_USER_NAME, WEIXIN_APP_ID, WEIXIN_APP_SECRECT

            "touser": to_user,
            "template_id": template_id,
            "url": "http://www.foolcage.com",
            "data": {
                "first": {
                    "value": title,
                    "color": "#173177"
                },
                "keyword1": {
                    "value": security_name,
                    "color": "#173177"
                },
                "keyword2": {
                    "value": current_price,
                    "color": "#173177"
                },
                "keyword3": {
                    "value": '{:.2%}'.format(change_pct),
                    "color": "#173177"
                },
                "remark": {
                    "value": "会所嫩模 Or 下海干活?",
                    "color": "#173177"
                }
            }
        }

        return the_json



if __name__ == '__main__':