You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
742 B
PHTML
24 lines
742 B
PHTML
5 years ago
|
<?php
|
||
|
include_once('utils.php');
|
||
|
|
||
|
//
|
||
|
// INPUT:
|
||
|
//
|
||
|
// $user_login login of the user that write the mail
|
||
|
// $mail_to user to send mail to (optional)
|
||
|
// $mail_subject subject of the mail (optional)
|
||
|
// $mail_content content of the mail (optional)
|
||
|
//
|
||
|
|
||
|
importParam('mail_to');
|
||
|
importParam('mail_subject');
|
||
|
importParam('mail_content');
|
||
|
|
||
|
read_template('new_mail.html', $new_mail);
|
||
|
|
||
|
$instance = str_replace(array('%%FROM%%', '%%UCFROM%%', '%%TO%%', '%%UCTO%%', '%%SUBJECT%%', '%%CONTENT%%'),
|
||
|
array($user_login, ucfirst($user_login), $mail_to, ucfirst($mail_to), ucfirst(displayable_string($mail_subject)), displayable_content($mail_content)),
|
||
|
$new_mail);
|
||
|
|
||
|
echo $instance;
|
||
|
?>
|