Skip to content

Commit

Permalink
added for clarity. updated configuration.html
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@320 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Jul 24, 2001
1 parent a86de9a commit 64a062c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
8 changes: 7 additions & 1 deletion config_inc.php
Expand Up @@ -11,6 +11,8 @@
# In general a value of 0 means the feature is disabled and 1 means the
# feature is enabled. Any other cases will have an explanation.

# Look in configuration.html for more detailed comments.

#error_reporting(E_ALL ^ E_NOTICE);
#error_reporting(E_ALL);

Expand Down Expand Up @@ -61,9 +63,13 @@
$g_administrator_email = "administrator@nowhere";
$g_webmaster_email = "webmaster@nowhere";

# the address all emails are sent to (which is why it's from_email)
# the "From: " field in emails
$g_from_email = "nobody@nowhere";

# 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@nowhere";

# the return address for bounced mail
$g_return_path_email = "admin@nowhere";

Expand Down
10 changes: 9 additions & 1 deletion configuration.html
Expand Up @@ -216,7 +216,15 @@ <h2>Content</h2>
$g_from_email
</td>
<td bgcolor="#ffffff">
This is the email address displayed in the "From: " field. The email system sends a email "To: " this email address and also uses this as the "From: ". The actually email to users is sent via the "bcc: " field. This is to help cut down on the number of emails sent per incident.
This is the email address displayed in the "From: " field.
</td>
</tr>
<tr>
<td bgcolor="#ddddff">
$g_to_email
</td>
<td bgcolor="#ffffff">
This is the email address displayed in the "To: " field. The email system sends a email to this email address. The actually email to users is sent via the "bcc: " field. This is to help cut down on the number of emails sent per incident. A good use of this would be to use this as a mailing list or archive email address.
</td>
</tr>
<tr>
Expand Down
6 changes: 2 additions & 4 deletions core_email_API.php
Expand Up @@ -391,7 +391,7 @@ function email_build_bugnote_message( $p_bug_id ) {
### --------------------
### Send bug info to reporter and handler
function email_bug_info( $p_bug_id, $p_message, $p_headers="" ) {
global $g_mantis_user_table, $g_mantis_bug_table, $g_mantis_project_table, $g_from_email;
global $g_mantis_user_table, $g_mantis_bug_table, $g_mantis_project_table, $g_to_email;

# build subject
$p_subject = email_build_subject( $p_bug_id );
Expand All @@ -406,7 +406,7 @@ function email_bug_info( $p_bug_id, $p_message, $p_headers="" ) {
$res2 = 1;

### Send Email
$res1 = email_send( $g_from_email, $p_subject, $t_message, $p_headers );
$res1 = email_send( $g_to_email, $p_subject, $t_message, $p_headers );
}
### --------------------
### Send to only the id
Expand Down Expand Up @@ -448,9 +448,7 @@ function email_send( $p_recipient, $p_subject, $p_message, $p_header="" ) {
# if you have problems with mailing

$t_recipient = trim( $p_recipient );

$t_subject = trim( $p_subject );

$t_message = trim( $p_message );

# @@@ Is it important to wordwrap???
Expand Down

0 comments on commit 64a062c

Please sign in to comment.