Sindbad~EG File Manager
from flask import request, url_for,flash, render_template
from core import app
from flask import url_for
from datetime import datetime, date, time, timedelta
import requests,mandrill,json
class EMAIL:
def sendMail(subject,html,to):
MANDRILL_API_KEY='3rql7lHFpPcoHnNAWYQTFQ'
mandrill_client = mandrill.Mandrill(MANDRILL_API_KEY)
message = { 'from_email': 'support@numerotec.com',
'from_name': 'School donation',
'to': [{
'email': to,
'name': to,
'type': 'to'
}],
'subject': subject,
'html': html
}
result = mandrill_client.messages.send(message = message)
return ('success')
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists