[Zope-CMF] DCWorkflow emailing review invites

Geoff Benn G.Benn@ftel.co.uk
Thu, 28 Jun 2001 12:40:22 +0100


--------------1BD9FF465EB0406568A30911
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

I'm trying to customise a DCWorkflow such that upon submiting a field
for addressees is included, and those addressees get emailed with a
review invitation.

This is what I have so far with problems with my addressees and
MailHost:

portal_skins/custom/content_submit_form
- change:

     <form method="post" action="content_status_modify_email">

 - addition:

       <tr>
        <td valign=top align=left colspan=2>
         <strong><em>Email addresses</em></strong><br>
         <textarea name="addressees" cols="60" rows="2" wrap="soft"

          style="width: 100%"></textarea>
        </td>
       </tr>

portal_skins/custom/content_status_modify_email :

     context.portal_workflow.doActionFor(
         context,
         workflow_action,
         comment=comment,
         addressees=addressees) # <<-- error with this

     context.REQUEST[ 'RESPONSE' ].redirect( '%s/view?%s'
                        % ( context.absolute_url()
                          , 'portal_status_message=Status+changed.'

                          ) )

     # host=self.MailHost
     # host=context.self.MailHost
     # host=DSL.projects.FDXEM.MailHost
     # host=MailHost
     # host=context.absolute_url().MailHost
     # host=context.MailHost
     host = ? # need a hint here !

     mto='geoff@ftel.co.uk;' + addressees
     mfrom='geoff@ftel.co.uk'
     msubject='Review request'
     mailtext='Submit for review:\n' + \
               context.absolute_url() + \
              'Comment:' + comment + '\n' + \
              '\n'

     host.send(mailtext, mto, mfrom, msubject)

Any help greatly appreciated.

Regards,
Geoff
--
Fujitsu Telecommunications Europe Ltd
Tel:  +44 (0)121 717 6441
Fax:  +44 (0)121 717 6018
E-mail: G.Benn@ftel.co.uk


--------------1BD9FF465EB0406568A30911
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi,
<p>I'm trying to customise a DCWorkflow such that upon submiting a field
for addressees is included, and those addressees get emailed with a review
invitation.
<p>This is what I have so far with problems with my addressees and MailHost:
<p>portal_skins/custom/content_submit_form
<br>- change:
<blockquote>&lt;form method="post" action="content_status_modify<b>_email</b>"></blockquote>
&nbsp;- addition:
<blockquote>&nbsp; &lt;tr>
<br>&nbsp;&nbsp; &lt;td valign=top align=left colspan=2>
<br>&nbsp;&nbsp;&nbsp; &lt;strong>&lt;em>Email addresses&lt;/em>&lt;/strong>&lt;br>
<br>&nbsp;&nbsp;&nbsp; &lt;textarea name="addressees" cols="60" rows="2"
wrap="soft"
<br>&nbsp;&nbsp;&nbsp;&nbsp; style="width: 100%">&lt;/textarea>
<br>&nbsp;&nbsp; &lt;/td>
<br>&nbsp; &lt;/tr></blockquote>
portal_skins/custom/content_status_modify_email :
<blockquote>context.portal_workflow.doActionFor(
<br>&nbsp;&nbsp;&nbsp; context,
<br>&nbsp;&nbsp;&nbsp; workflow_action,
<br>&nbsp;&nbsp;&nbsp; comment=comment,
<br>&nbsp;&nbsp;&nbsp; addressees=addressees) <b># &lt;&lt;-- error with
this</b>
<p>context.REQUEST[ 'RESPONSE' ].redirect( '%s/view?%s'
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
% ( context.absolute_url()
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
, 'portal_status_message=Status+changed.'
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
) )
<p># host=self.MailHost
<br># host=context.self.MailHost
<br># host=DSL.projects.FDXEM.MailHost
<br># host=MailHost
<br># host=context.absolute_url().MailHost
<br># host=context.MailHost
<br><b>host = ? # need a hint here !</b>
<p>mto='geoff@ftel.co.uk;' + addressees
<br>mfrom='geoff@ftel.co.uk'
<br>msubject='Review request'
<br>mailtext='Submit for review:\n' + \
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; context.absolute_url()
+ \
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Comment:' + comment
+ '\n' + \
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '\n'
<p>host.send(mailtext, mto, mfrom, msubject)</blockquote>
Any help greatly appreciated.
<p>Regards,
<br>Geoff
<br>--
<br>Fujitsu Telecommunications Europe Ltd
<br>Tel:&nbsp; +44 (0)121 717 6441
<br>Fax:&nbsp; +44 (0)121 717 6018
<br>E-mail: G.Benn@ftel.co.uk
<br>&nbsp;</html>

--------------1BD9FF465EB0406568A30911--