[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><form method="post" action="content_status_modify<b>_email</b>"></blockquote>
- addition:
<blockquote> <tr>
<br> <td valign=top align=left colspan=2>
<br> <strong><em>Email addresses</em></strong><br>
<br> <textarea name="addressees" cols="60" rows="2"
wrap="soft"
<br> style="width: 100%"></textarea>
<br> </td>
<br> </tr></blockquote>
portal_skins/custom/content_status_modify_email :
<blockquote>context.portal_workflow.doActionFor(
<br> context,
<br> workflow_action,
<br> comment=comment,
<br> addressees=addressees) <b># <<-- error with
this</b>
<p>context.REQUEST[ 'RESPONSE' ].redirect( '%s/view?%s'
<br>
% ( context.absolute_url()
<br>
, 'portal_status_message=Status+changed.'
<br>
) )
<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> context.absolute_url()
+ \
<br> 'Comment:' + comment
+ '\n' + \
<br> '\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: +44 (0)121 717 6441
<br>Fax: +44 (0)121 717 6018
<br>E-mail: G.Benn@ftel.co.uk
<br> </html>
--------------1BD9FF465EB0406568A30911--