View Issue Details

IDProjectCategoryView StatusLast Update
0001750mantisbtemailpublic2004-08-29 02:12
Reporterschickb Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSRedhat 7.2 
Product Version0.17.1 
Summary0001750: Bcc email is blocked by spam filters (patch included)
Description

When $g_use_bcc is enabled the resulting email is blocked by most spam filters because the To: field does not contain the recient's address. But disabling $g_use_bcc exposes everyone's email address.

Additional Information

I will attach 2 patches in the bug notes. These patches do the following:

-Add the $g_separate_emails config flag
-When $g_use_bcc is disabled and $g_separate_emails is enabled a separate email is sent to each recipient with their address in the To: field.

TagsNo tags attached.

Relationships

child of 0003987 closedvboctor Mantis 0.19.0 Release 

Activities

schickb

schickb

2002-03-26 15:07

reporter   ~0002199

*** config_inc1.php-1.14 Tue Mar 26 14:35:08 2002
--- config_inc1.php Tue Mar 26 12:58:23 2002


* 99,104 **
--- 99,109 ----

bcc-bug (~PHP 4.0.6)

    $g_use_bcc                   = ON;
  • When enabled, send a separate email to each recipient instead of using

  • a To: line with multiple recipients. This setting only applies when

  • $g_use_bcc is set to OFF.

  • $g_separate_emails = ON;
  • # phpMailer instead of standard mail() function (REQUIRES PHP 4.x.x)
    # Get the phpMailer-package from <a href="http://phpmailer.sourceforge.net">http://phpmailer.sourceforge.net</a>
    # The installation is very simple you only need 2 plain text php-files
schickb

schickb

2002-03-26 15:08

reporter   ~0002200

*** core_email_API.php-1.36 Tue Mar 26 14:31:14 2002
--- core_email_API.php Tue Mar 26 14:14:02 2002


* 443,449 **

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_to_email, $g_use_bcc;

            # build subject
            $p_subject = email_build_subject( $p_bug_id );

--- 443,449 ----

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_to_email, $g_use_bcc, $g_separate_emails;

            # build subject
            $p_subject = email_build_subject( $p_bug_id );

* 455,468 **

            # send mail
            $res1 = 1;
  • $res2 = 1;

            ## win-bcc-bug
            if ( OFF == $g_use_bcc ) {

    ! ## list of receivers
    ! $to = $g_to_email.(($p_headers && $g_to_email) ? ", " : "").$p_headers;
    ! # echo "
    email_bug_info::Sending email to :" . $to;
    ! $res1 = email_send( $to, $p_subject, $t_message, "" );
    } else {

    Send Email

                    # echo "<br>email_bug_info::Sending email to : ".$g_to_email;

    --- 455,484 ----

            # send mail
            $res1 = 1;
    
            ## win-bcc-bug
            if ( OFF == $g_use_bcc ) {

    ! if( OFF == $g_separate_emails ) {
    ! ## send 1 email to list of receivers
    ! $to = $g_to_email.(($p_headers && $g_to_email) ? ", " : "").$p_headers;
    ! # echo "
    email_bug_info::Sending email to :" . $to;
    ! $res1 = email_send( $to, $p_subject, $t_message, "" );
    !
    ! } else {
    ! ## send separate emails to keep addresses private
    ! if( !empty($g_to_email) ) {
    ! # echo "
    email_bug_info::Sending email to :" . $g_to_email;
    ! $res1 = email_send( $g_to_email, $p_subject, $t_message, "" );
    ! }
    !
    ! $t_bcc_list = explode(",", $p_headers);
    ! while(list(, $t_bcc) = each($t_bcc_list)) {
    ! if ( !empty( $t_bcc ) ) {
    ! # echo "
    email_bug_info::Sending email to :" . $t_bcc;
    ! $res1 = email_send( $t_bcc, $p_subject, $t_message, "" );
    ! }
    ! }
    ! }
    } else {

    Send Email

                    # echo "<br>email_bug_info::Sending email to : ".$g_to_email;

    * 604,607 **
    }

    --------------------

    ?>

  • --- 620,622 ----

schickb

schickb

2002-03-27 14:36

reporter   ~0002212

I notices all the tabs were removed from the patch text. If anyone wants the original patches let me know (<a href="mailto:schickb@hotmail.com" target="_new">schickb@hotmail.com</a>).

Also I created these patches from 17.1 source

core_email_API.php: 1.36
config_inc1.php: 1.14

thraxisp

thraxisp

2004-07-25 20:31

reporter   ~0006356

This looks like it is obsolete with the current email implementation.

It can probably be closed.

vboctor

vboctor

2004-08-01 03:36

manager   ~0006517

This is already implemented since 0.19.0a1.