Location: PHPKode > projects > Butterfly Organizer > module-mailr.php
<?php
/*
Butterfly Organizer
Copyright (C) 2007-2008 Butterfly Media Romania

This file is part of Butterfly Organizer.

Butterfly Organizer is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 3 of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

include('includes/top.php');

include('includes/me_config.php');
include('includes/me_variables.php');
include('includes/me_functions.php');

echo '<h2>.mailr</h2>';
?>
<form id="emailer" name="emailer" method="post" action="helper-send.php">
<div class="wrapper">
	<?php if($demo_mode == 1) {echo '<br /><br /><strong>Warning!</strong> Demo mode is active!';}?>
</div>

<div class="wrapper">
	<label for="address_file">Path to the recipient address file:</label> <span class="required">*</span> 
	<select name="address_file" id="address_file" size="1">
	<?php
		$counter = 0;
		for ($counter = 0;$counter <= 9;$counter++) {
			if(($counter+1) == $default_address_list) {
				echo "<option selected='selected'>\n";
			}
			else {
				echo "<option>\n";
			}
			echo $file[$counter];
			echo "</option>\n";
		}
	?>
	</select>
	<br /><br />
	<label for="special_file">Path to a special address file:</label><br />
	<input type="text" name="special_file" id="special_file" size="60" />
	<br /><br />
	<label for="wait_time">Wait time for sending:</label><br />
	<input type="text" id="wait_time" name="wait_time" size="3" value="<?php echo $default_wait_time; ?>" /> seconds
	<br /><br />
	<label for="email_format">Is HTML format?</label>&nbsp;
	<?php if($default_email_format == "html") { ?>
		<input type="checkbox" id="email_format" name="email_format" value="html" checked="checked" />
	<?php } else { ?>
		<input type="checkbox" id="email_format" name="email_format" value="html" />
	<?php } ?>
	<br /><br />
</div>

<div class="wrapper">
	<label for="email_sender">E-mail address of the sender:</label><br />
	<input type="text" name="email_sender" id="email_sender" size="60" value="<?php echo $default_email_sender; ?>" />
	<br /><br />
	<label for="email_confirmation">E-mail address for confirmation:</label><br />
	<input type="text" name="email_confirmation" id="email_confirmation" size="60" value="<?php echo $default_email_confirmation; ?>" />
	<br /><br />
	<label for="email_subject">E-mail subject:</label><br />
	<input type="text" name="email_subject" id="email_subject" size="60" value="<?php echo $default_email_subject ?>" />
	<br /><br />
	<label for="email_message">E-mail message:</label><br />
	<textarea name="email_message" id="email_message" cols="40" class="expanding"></textarea>
</div>

<div class="wrapper">
	<input type="submit" name="send" value="Send" class="bsButton" />
</div>
</form>
<?php include('includes/bottom.php');?>
Return current item: Butterfly Organizer