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:
# March 04 2023 Bulk mail using thread
def WebhookInitiateMail(subject,html,to):
MANDRILL_API_KEY='3rql7lHFpPcoHnNAWYQTFQ' # IP ADDRESS ENABLED
mandrill_client = mandrill.Mandrill(MANDRILL_API_KEY)
message = {'subject' : subject, 'recipients':to,'from_name': 'Webhook Mail',
'html': html, 'from_email' : 'support@numerotec.com',
"headers" :{"Reply-To": "support@numerotec.com"} ,'to' : [{'email':to,'name':to,'type':'to'}] }
result = mandrill_client.messages.send(message = message,send_async=True)
return ('success')
# with app.app_context():
# result = mandrill_client.messages.send(message = message,send_async=True)
# return ('success')
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists