<commit_before><?php
/*
 * @author Anakeen
 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License
 * @package FDL
*/
/**
 * Send mail using freedom sendmail
 *
 * @author Anakeen
 * @version $Id: fdl_sendmail.php,v 1.1 2007/01/19 16:24:03 eric Exp $
 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License
 * @package FDL
 * @subpackage
 */
/**
 */

include_once ("FDL/sendmail.php");

$usage = new ApiUsage();

$usage->setDefinitionText("Send mail using freedom sendmail");
$to = $usage->addOptionalParameter("to", "email to send to");
$cc = $usage->addOptionalParameter("cc", "cc");
$bcc = $usage->addOptionalParameter("bcc", "bcc");
$subject = $usage->addOptionalParameter("subject", "subject");
$file = $usage->addOptionalParameter("file", "file (can be a file name or stdin");
$htmlmode = $usage->addOptionalParameter("htmlmode", "activacte htmlmode");

$usage->verify();
/**
 * @var Action $action
 */
$from = getMailAddr($action->user->id);
if ($from == "") $from = getParam('SMTP_FROM');
if ($from == "") $from = $from = $action->user->login . '@' . php_uname('n');

$themail = new Fdl_Mail_mime();
if ($file && $file != 'stdin') {<commit_msg>correct strict in wsh:fdl_sendmail usage due to pear mail (refs #4120)<commit_after><?php
/*
 * @author Anakeen
 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License
 * @package FDL
*/
/**
 * Send mail using freedom sendmail
 *
 * @author Anakeen
 * @version $Id: fdl_sendmail.php,v 1.1 2007/01/19 16:24:03 eric Exp $
 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License
 * @package FDL
 * @subpackage
 */
/**
 */


$usage = new ApiUsage();

$usage->setDefinitionText("Send mail using freedom sendmail");
$to = $usage->addOptionalParameter("to", "email to send to");
$cc = $usage->addOptionalParameter("cc", "cc");
$bcc = $usage->addOptionalParameter("bcc", "bcc");
$subject = $usage->addOptionalParameter("subject", "subject");
$file = $usage->addOptionalParameter("file", "file (can be a file name or stdin");
$htmlmode = $usage->addOptionalParameter("htmlmode", "activacte htmlmode");

$usage->verify();
/**
 * @var Action $action
 */
$from = getMailAddr($action->user->id);
if ($from == "") $from = getParam('SMTP_FROM');
if ($from == "") $from = $from = $action->user->login . '@' . php_uname('n');


include_once ("FDL/sendmail.php");
$themail = new Fdl_Mail_mime();
if ($file && $file != 'stdin') {
{'fraction_non_alphanumeric': 0.1976284584980237, 'fraction_numerical': 0.017391304347826087, 'mean_word_length': 4.94131455399061, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5859197', 'n_tokens_mistral': 892, 'n_tokens_neox': 863, 'n_words': 208}