marrow/marrow.mailer — Issue #10: Unable to determine manager from specification: 'immediate'
Author: ghiewa
Created: 2011-10-24 12:50:01+00:00
State: open

do not known why?

code as,

import sys
import logging

from marrow.mailer import Message, Delivery
sys.path.append(__file__)

logging.basicConfig(level=logging.INFO)

configuration = {
'manager': 'immediate', #'futures'
'manager.workers': 5,

'transport': 'smtp',
'transport.host': 'smtp.gmail.com',
'transport.tls': 'ssl', # None=='', required, optional
'transport.port': 465, # 25, 465 = SSL
'transport.username': '',
'transport.password': '',
'transport.max_messages_per_connection': 5,
'transport.debug': False
}

if __name__ == '__main__':
mail = Delivery(configuration)
mail.start()

message = Message()
message.author = [('Alice Bevan-McGregor', 'ghiewa@gmail.com')]
message.to = [('Your Name Here', 'ghiewa@126.com')]
message.subject = "This is a test message."
message.plain = "Testing!"

mail.send(message)
mail.stop()