#!/usr/bin/env python3

from parameters import amqp_config
from env import *
from python.modules.listener import Listener
import python.mailers.order_email_notifier as OrderMailer

print("Starting mailer...")
amqp_config['queue'] = 'FulfillmentMailerQueue'
listener = Listener(amqp_config)
listener.add_handler(OrderMailer.handle)
listener.listen()