[Grok-dev] send mail queryUtility ComponentLookupError todoplus
Maurits van Rees
m.van.rees at zestsoftware.nl
Fri Aug 20 12:16:10 EDT 2010
Op 20-08-10 11:24, DIVINE, PAUL (PAUL) schreef:
> mailer = getUtility(IMailDelivery, 'todoplus')
(...)
> <mail:smtpMailer
> name="todoplus.smtp"
> hostname="mailhost.xxxxx"
> port="25"
> username="xxxxx"
> password="xxxx"
> />
> <mail:queuedDelivery
> name="mailer"
> permission="zope.Public"
> mailer="todoplus.smtp"
> queuePath="mailqueue"
> />
In this zcml you have defined a mailer with name 'todoplus.smtp'. So in
the above python code you should use that name as well:
mailer = getUtility(IMailDelivery, 'todoplus.smtp')
Or the other way around (both using 'todoplus' as name) of course.
--
Maurits van Rees
Programmer, Zest Software
More information about the Grok-dev
mailing list