After installing edifact_ordertoprint and successfully testing it, I tried the following approaches:
1. Change the default edifact_ordertoprint route to have outchannel type smtp:
CommunicationOutError: No mail-address for partner "PARTNER1" (channel "smtp_out").
2. Leave the default route and create another route (same id, higher seq value) to an smtp_out outchannel from an smtp_in inchannel of type file. With route fromeditype template-html,
File "/usr/lib/python2.7/site-packages/bots/transform.py", line 54, in translate
idroute=idroute)
File "/usr/lib/python2.7/site-packages/bots/inmessage.py", line 38, in edifromfile
ediobject.initfromfile()
File "/usr/lib/python2.7/site-packages/bots/inmessage.py", line 62, in initfromfile
self.defmessage = grammar.grammarread(self.ta_info['editype'],self.ta_info['messagetype']) #read grammar, after sniffing. Information from sniffing can be used (eg name editype for edifact, using version info from UNB)
File "/usr/lib/python2.7/site-packages/bots/grammar.py", line 15, in grammarread
terug = classtocall('grammars',editype,grammarname)
File "/usr/lib/python2.7/site-packages/bots/grammar.py", line 62, in __init__
self.module,self.grammarname = botslib.botsimport(soortpythonfile,editype + '.' + grammarname)
File "/usr/lib/python2.7/site-packages/bots/botslib.py", line 554, in botsimport
raise ScriptImportError(_(u'import error in "$module", error:\n$txt'),module=modulefile,txt=txt)
ScriptImportError: import error in "/usr/lib/python2.7/site-packages/bots/bots.usersys/grammars/edifact.", error:
File "/usr/lib/python2.7/site-packages/bots/botslib.py", line 548, in botsimport
module = botsbaseimport(modulepath)
File "/usr/lib/python2.7/site-packages/bots/botslib.py", line 533, in botsbaseimport
module = getattr(module, comp)
AttributeError: 'module' object has no attribute ''