/usr/share/webissues-server/include/mail-standard.inc.php is in webissues-server 0.8.5-3ubuntu1.
This file is owned by nobody:nogroup, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | <?php
/**************************************************************************
* This file is part of the WebIssues Server program
* Copyright (C) 2006 Michał Męciński
* Copyright (C) 2007-2009 WebIssues Team
*
* This program 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; either version 2 of the License, or
* (at your option) any later version.
**************************************************************************/
function wi_mail_send( $from, $to, $subject, $body, $content_type )
{
$headers = array();
$headers[ 'MIME-Version' ] = '1.0';
$headers[ 'Content-Type' ] = $content_type . '; charset=UTF-8';
$headers[ 'Content-Transfer-Encoding' ] = '8Bit';
$headers[ 'X-Mailer' ] = 'WebIssues Server';
if ( !empty( $from ) ) {
$headers[ 'From' ] = $from;
$headers[ 'Reply-To' ] = $from;
$headers[ 'Sender' ] = $from;
$headers[ 'Return-Path' ] = $from;
$headers[ 'Errors-To' ] = $from;
}
$subject = wi_mime_header_encode( $subject );
$headers = wi_format_headers( $headers );
$body = str_replace( "\r", '', $body );
return mail( $to, $subject, $body, $headers );
}
|