[Zope-CMF] Mailhost problem???

Kevin Carlson khcarlso@bellsouth.net
Fri, 29 Mar 2002 16:56:00 -0500


Hi,

I am using a Python script to send mail from a workflow.  The error message
is below.   The message culminates in "SMTPDataError: (503, '5.0.0 Need RCPT
(recipient)')
".  The code that I am using to send the email is:

context.MailHost.send(url, mto=to_list, mfrom=usr.getProperty('email'),
subject="New content")

To me is looks as if I am specifying the recipient in the mfrom keyword --
any ideas?

Thanks,

Kevin


-----------------------------------------------


Traceback (innermost last):
  File C:\PROGRA~1\ZopeTest\lib\python\ZPublisher\Publish.py, line 150, in
publish_module
  File C:\PROGRA~1\ZopeTest\lib\python\ZPublisher\Publish.py, line 114, in
publish
  File C:\PROGRA~1\ZopeTest\lib\python\Zope\__init__.py, line 158, in
zpublisher_exception_hook
    (Object: newFile)
  File C:\PROGRA~1\ZopeTest\lib\python\ZPublisher\Publish.py, line 98, in
publish
  File C:\PROGRA~1\ZopeTest\lib\python\ZPublisher\mapply.py, line 88, in
mapply
    (Object: content_status_modify)
  File C:\PROGRA~1\ZopeTest\lib\python\ZPublisher\Publish.py, line 39, in
call_object
    (Object: content_status_modify)
  File C:\PROGRA~1\ZopeTest\lib\python\Shared\DC\Scripts\Bindings.py, line
252, in __call__
    (Object: content_status_modify)
  File C:\PROGRA~1\ZopeTest\lib\python\Shared\DC\Scripts\Bindings.py, line
283, in _bindAndExec
    (Object: content_status_modify)
  File C:\PROGRA~1\ZopeTest\lib\python\Products\CMFCore\FSPythonScript.py,
line 115, in _exec
    (Object: content_status_modify)
    (Info: ({'script': <FSPythonScript instance at 0159D550>,
'context': <File instance at 022B5310>, 'container': <CMFSite
instance at 02253610>, 'traverse_subpath': []}, ('submit', ''), {},
('',)))
  File Script (Python), line 4, in content_status_modify
  File C:\PROGRA~1\ZopeTest\lib\python\Products\CMFCore\WorkflowTool.py,
line 465, in doActionFor
    (Object: portal_workflow)
  File C:\PROGRA~1\ZopeTest\lib\python\Products\CMFCore\WorkflowTool.py,
line 416, in _invokeWithNotification
    (Object: portal_workflow)
  File C:\PROGRA~1\ZopeTest\lib\python\Products\DCWorkflow\DCWorkflow.py,
line 272, in doActionFor
    (Object: default_workflow)
  File C:\PROGRA~1\ZopeTest\lib\python\Products\DCWorkflow\DCWorkflow.py,
line 437, in _changeStateOf
    (Object: default_workflow)
  File C:\PROGRA~1\ZopeTest\lib\python\Products\DCWorkflow\DCWorkflow.py,
line 542, in _executeTransition
    (Object: default_workflow)
  File C:\PROGRA~1\ZopeTest\lib\python\Shared\DC\Scripts\Bindings.py, line
252, in __call__
    (Object: email)
  File C:\PROGRA~1\ZopeTest\lib\python\Shared\DC\Scripts\Bindings.py, line
283, in _bindAndExec
    (Object: email)
  File
C:\PROGRA~1\ZopeTest\lib\python\Products\PythonScripts\PythonScript.py, line
291, in _exec
    (Object: email)
    (Info: ({'script': <PythonScript instance at 023050E8>, 'context':
<Scripts instance at 01372448>, 'container': <Scripts instance at
01372448>, 'traverse_subpath': []},
(<Products.DCWorkflow.Expression.StateChangeInfo instance at
022DF67C>,), {}, None))
  File Script (Python), line 34, in email
  File C:\PROGRA~1\ZopeTest\lib\python\Products\MailHost\MailHost.py, line
156, in send
    (Object: MailHost)
  File C:\PROGRA~1\ZopeTest\lib\python\Products\MailHost\MailHost.py, line
201, in _send
    (Object: MailHost)
  File C:\PROGRA~1\ZopeTest\bin\lib\smtplib.py, line 494, in sendmail
  File C:\PROGRA~1\ZopeTest\bin\lib\smtplib.py, line 384, in data
SMTPDataError: (503, '5.0.0 Need RCPT (recipient)')