Navigation Menu

Skip to content

Commit

Permalink
fix for 0004107: email w/o recipient sent
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2852 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
thraxisp committed Aug 15, 2004
1 parent 94c4d65 commit cf31cbb
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 17 deletions.
9 changes: 1 addition & 8 deletions config_defaults_inc.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: config_defaults_inc.php,v 1.197 2004-08-14 15:26:20 thraxisp Exp $
# $Id: config_defaults_inc.php,v 1.198 2004-08-15 23:13:01 thraxisp Exp $
# --------------------------------------------------------


Expand Down Expand Up @@ -172,10 +172,6 @@
# the 'From: ' field in emails
$g_from_email = 'noreply@example.com';

# the 'To: ' address all emails are sent. This can be a mailing list or archive address.
# Actual users are emailed via the bcc: fields
$g_to_email = 'nobody@example.com';

# the return address for bounced mail
$g_return_path_email = 'admin@example.com';

Expand Down Expand Up @@ -261,9 +257,6 @@
# Note: some MTAs interpret X-Priority = 0 to mean 'Very Urgent'
$g_mail_priority = 3;

# Set to OFF on Windows systems, as long as php-mail-function has its bcc-bug (~PHP 4.0.6)
$g_use_bcc = ON;

# select the method to mail by:
# 0 - mail()
# 1 - sendmail
Expand Down
6 changes: 1 addition & 5 deletions config_inc.php.sample
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: config_inc.php.sample,v 1.12 2004-02-08 13:16:57 vboctor Exp $
# $Id: config_inc.php.sample,v 1.13 2004-08-15 23:13:02 thraxisp Exp $
# --------------------------------------------------------

# This sample file contains the essential files that you MUST
Expand Down Expand Up @@ -41,10 +41,6 @@
# the "From: " field in emails
$g_from_email = 'noreply@example.com';

# the "To: " address all emails are sent. This can be a mailing list or archive address.
# Actual users are emailed via the bcc: fields
$g_to_email = 'nobody@example.com';

# the return address for bounced mail
$g_return_path_email = 'admin@example.com';

Expand Down
4 changes: 2 additions & 2 deletions core/email_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: email_api.php,v 1.93 2004-08-15 22:21:53 thraxisp Exp $
# $Id: email_api.php,v 1.94 2004-08-15 23:13:02 thraxisp Exp $
# --------------------------------------------------------

$t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -528,7 +528,7 @@ function email_send( $p_recipient, $p_subject, $p_message, $p_header='', $p_cate
$t_message = string_email_links( trim( $p_message ) );

# short-circuit if no recipient is defined
if ( is_blank( $p_recipient ) && ( OFF == config_get('use_bcc') ) ) {
if ( is_blank( $p_recipient ) ) {
return;
}

Expand Down
7 changes: 5 additions & 2 deletions core/obsolete.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: obsolete.php,v 1.26 2004-08-03 13:47:48 vboctor Exp $
# $Id: obsolete.php,v 1.27 2004-08-15 23:13:02 thraxisp Exp $
# --------------------------------------------------------

### Obsolete API ###
Expand Down Expand Up @@ -86,12 +86,15 @@
config_obsolete( 'summary_pad', '' );

config_obsolete( 'show_project_in_title', '' );


# removed in 0.19
config_obsolete( 'hide_closed_default', 'hide_status_default' );

config_obsolete( 'close_bug_threshold', 'set_status_threshold' );
config_obsolete( 'reopen_bug_threshold', 'set_status_threshold' );

config_obsolete( 'status_pulldown_enum_mask_string', '' );
config_obsolete( 'to_email', '' );
config_obsolete( 'use_bcc', '' );

?>
3 changes: 3 additions & 0 deletions doc/ChangeLog
Expand Up @@ -57,6 +57,7 @@ Mantis ChangeLog
- 0003483: [upgrade] some admin users permissions not completly upgraded from 0.17.5 to 0.18.0 (thraxisp)
- 0003877: [email] Upgrade to PHPMailer 1.72 (vboctor)
- 0004147: [email] Receiving emails in foreign languages (thraxisp)
- 0004107: [email] email w/o recipient sent (thraxisp)
- 0002220: [installation] usage of consistent naming schema for images (vboctor)
- 0003307: [installation] check.php always checks mail() rather than the config (thraxisp)
- 0004163: [other] Unreadable error messages in some languages (vboctor)
Expand All @@ -72,6 +73,8 @@ Mantis ChangeLog
- New Config: font_per_captcha - font name used to create the captcha image
- New Config: lost_password_feature - enable lost password feature
- New Config: max_lost_password_in_progress_count - Max. simultaneous requests of 'lost password'
- Removed config option (to_mail): no longer required
- Removed config option (use_bcc): no longer required
- Updated German, French, Brazilian Portuguese, japanese_euc, japanese_sjis, Korean, Russian and japanese_utf8 language.
- Added Slovene language.

Expand Down

0 comments on commit cf31cbb

Please sign in to comment.