3 * mailout.php part of listcommands plugin
4 * last modified: 2002/01/12 by Thijs Kinkhorst
9 include_once ('../src/validate.php');
10 include_once ('../functions/page_header.php');
11 include_once ('../src/load_prefs.php');
13 displayPageHeader($color, $mailbox);
17 <TABLE align
="center" width
="75%" BGCOLOR
="<?php echo $color[0]; ?>">
18 <TR
><TH BGCOLOR
="<?php echo $color[9] . '">' . _("Mailinglist") . ' ' . _($action); ?></TH></TR>
24 $out_string .= _("This will send a message to %s requesting help for this list. You will receive an emailed response at the address below.");
27 $out_string .= _("This will send a message to %s requesting that you will be subscribed to this list. You will be subscribed with the address below.");
30 $out_string = _("This will send a message to %s requesting that you will be subscribed to this list. It will try to unsubscribe the adress below.");
33 printf( $out_string, htmlspecialchars($send_to) );
35 echo '<form method
="POST" action
="../../src/compose.php">';
38 * Identity support (RFC 2369 sect. B.1.)
40 * I had to copy this from compose.php because there doesn't
41 * seem to exist a
function to get the identities
.
44 $defaultmail = htmlspecialchars(getPref($data_dir, $username, 'full_name'));
45 $em = getPref($data_dir, $username, 'email_address');
47 $defaultmail .= htmlspecialchars(' <' . $em . '>') . "\n";
49 echo '<P><CENTER>' . _("From:");
51 $idents = getPref($data_dir, $username, 'identities');
52 if ($idents != '' && $idents > 1)
54 echo ' <select name=identity>' . "\n" .
55 '<option value=default>' . $defaultmail;
56 for ($i = 1; $i < $idents; $i ++
) {
57 echo '<option value="' . $i . '"';
58 if (isset($identity) && $identity == $i) {
61 echo '>' . htmlspecialchars(getPref($data_dir, $username,
63 $em = getPref($data_dir, $username, 'email_address' . $i);
65 echo htmlspecialchars(' <' . $em . '>') . "\n";
68 echo '</select>' . "\n" ;
77 <input type
=hidden name
="send_to" value
="<?php echo htmlspecialchars($send_to); ?>">
78 <input type
=hidden name
="subject" value
="<?php echo htmlspecialchars($subject); ?>">
79 <input type
=hidden name
="body" value
="<?php echo htmlspecialchars($body); ?>">
80 <input type
=hidden name
="mailbox" value
="<?php echo htmlspecialchars($mailbox); ?>">
81 <input type
=submit name
="send" value
="<?php echo _("Send Mail
"); ?>"><BR
><BR
></CENTER
>