problems in sending email in bulk

i have problems in sending email in bulk.when i send email with attachment to many people at the same time, the receiver claims that the emails does not have sender's information, its empty,even the date sent also missing.but when it sent to one person, the problem does not occur.

why is this happening?is it because of the email server or mail coding?

Comments

  • : i have problems in sending email in bulk.when i send email with attachment to many people at the same time, the receiver claims that the emails does not have sender's information, its empty,even the date sent also missing.but when it sent to one person, the problem does not occur.
    :
    : why is this happening?is it because of the email server or mail coding?


    Well we would have to see your code to know if that is the problem, but I would suspect it is being flagged as spam and rejected because of that. Multiple recipients and attachments...with how paranoid people have to be about email these days, unfortunately that's just asking for trouble.
  • the coding is as below:


    [php]
    function compose($id,$draft='0'){
    global $mod_admin,$mod_title,$db,$mainfile,$userdata;
    include ("header.php");
    AdminLinks();

    if(!empty($draft)){
    $t_result = $db->sql_query("SELECT title,content,charset FROM ".MAILING_DRAFT_TABLE." WHERE id='$id'");
    list($t_title,$t_content,$t_charset) = $db->sql_fetchrow($t_result);
    $t_content = stripslashes($t_content);
    $t_charset = stripslashes($t_charset);
    $t_title = stripslashes($t_title);
    } else {
    if(empty($id)) $id = '1';
    $t_result = $db->sql_query("SELECT content,charset FROM ".MAILING_TEMPLATE_TABLE." WHERE id='$id'");
    list($t_content,$t_charset) = $db->sql_fetchrow($t_result);
    $t_content = stripslashes($t_content);
    $t_charset = stripslashes($t_charset);
    $t_title = "News and Update";
    }
    OpenTable3("96%");
    echo "
    COMPOSE E-MAIL

    ";
    OpenTable("90%");
    echo "";
    echo "";
    echo "";
    echo "";
    echo "";
    echo ""
    .""
    ."
    FROM"
    .""
    ."".$userdata[user_email].""
    ."webeditor@ehomemakers.net"
    ."editor@ehomemakers.net"
    ."project_manager@ehomemakers.net"
    ."webmistress@ehomemakers.net"
    ."web_chinese@ehomemakers.net"
    ."web_malay@ehomemakers.net"
    ."salaamwanita@ehomemakers.net"
    ."project-admin@ehomemakers.net"
    ."greenliving@ehomemakers.net"
    ."
    SEND TO"
    .""
    ."Myself ONLY";
    $resultm = $db->sql_query("SELECT id,title FROM ".MAILINGLIST_TABLE);
    While(list($mid,$mtitle) = $db->sql_fetchrow($resultm)){
    echo "".stripslashes($mtitle)."";
    }
    echo "
    TITLE
    MESSAGE";
    //echo "";
    echo "
    ";
    echo ""
    ."
    $t_content
    ";
    echo "
    "
    ."Edit HTML";
    echo "
    ";
    echo "";
    echo "";
    echo "

    "
    ."Save as draft
    "
    ."Proceed to send e-mail
    "
    ."";
    echo "
    ";
    echo "";
    echo "";
    echo "";
    if(!empty($draft)) echo "";
    echo "";
    echo "
    ";
    echo ""
    ."
    Note :
    "
    ."- Make sure all related picture or image in the newsletter already been upload to server."
    ."
    ";
    echo "";
    echo "";
    CloseTable();
    CloseTable3();
    echo "

    ";
    include ("footer.php");
    }


    function continue_mailing($from,$recp,$title,$content,$charset){
    global $mod_admin,$mod_title,$db,$mainfile,$userdata,$adminmail,$bill_path;

    @set_time_limit(0);
    @ignore_user_abort();

    $chk_from_email = validate_email($from);
    if(!$chk_from_email){
    $err_msg = "Invalid Sender Email. Please provide a valid email address.";
    error($err_msg);
    }

    if(empty($title) or empty($content)){
    $err_msg = "One or more required data is missing. Please make sure all required data is filled.";
    error($err_msg);
    }

    $headers .= "From: $from
    ";
    $headers .= "Content-Type: text/html; charset=".$charset."
    ";
    $headers .= "MIME-Version: 1.0
    ";
    $headers .= "Return-Path: $adminmail
    ";
    $headers .= "X-Mailer: PHP/".phpversion();
    $subject = "".stripslashes($title);
    $msg = stripslashes($content);

    if($recp!='myself'){
    if(!empty($recp)){
    $result = $db->sql_query("SELECT gender,marital,age,occ,interest,subscribe FROM ".MAILINGLIST_TABLE." WHERE id='".base64_decode($recp)."'");
    list($ml_gender,$ml_marital,$ml_occ,$ml_interest,$ml_subscribe,$ml_age) = $db->sql_fetchrow($result);
    }

    $sql_select = "SELECT DISTINCT user_email";
    $sql_from = " FROM ".USERS_TABLE;
    $sql_where = " WHERE user_id > 0";

    if(!empty($ml_gender)) $sql_where .= " AND user_gender='$ml_gender'";
    if(!empty($ml_marital)) $sql_where .= " AND user_marital='$ml_marital'";
    if(!empty($ml_occ)) $sql_where .= " AND user_occ = '$ml_occ'";
    if(!empty($ml_interest)) $sql_where .= " AND user_interest = '$ml_interest'";
    if(!empty($ml_subscribe)) $sql_where .= " AND user_subscribe = '$ml_subscribe'";
    if(!empty($ml_age)){
    if($ml_age == "A") $sql_where .= " AND YEAR(now()) - YEAR(user_birthdate) <= 20";
    elseif($ml_age == "B") $sql_where .= " AND (YEAR(now()) - YEAR(user_birthdate) > 20) AND (YEAR(now()) - YEAR(user_birthdate) <= 30)";
    elseif($ml_age == "C") $sql_where .= " AND (YEAR(now()) - YEAR(user_birthdate) > 30) AND (YEAR(now()) - YEAR(user_birthdate) <= 40)";
    elseif($ml_age == "D") $sql_where .= " AND (YEAR(now()) - YEAR(user_birthdate) > 40) AND (YEAR(now()) - YEAR(user_birthdate) <= 50)";
    elseif($ml_age == "E") $sql_where .= " AND YEAR(now()) - YEAR(user_birthdate) > 50";
    }

    $result = $db->sql_query($sql_select.$sql_from.$sql_where);
    $filename = "list_".$recp.".php";
    $address_file = $bill_path.$filename;
    $fd = fopen($address_file,"w+") or die("Cann't open file $filename.");
    $fout = fwrite($fd, $adminmail."
    ");
    while(list($user_email) = $db->sql_fetchrow($result)) {
    $fout = fwrite($fd, $user_email."
    ");
    }
    $fout = fwrite($fd, "mylene@mimced.com
    ");
    } else

    {
    include ('header.php');
    AdminLinks();
    OpenTable3("90%");
    if (!mail($from, $subject, $msg, $headers, "-f $from"))
    echo "
    Fail to send email!

    ";
    else echo "
    Email successfully sent!

    ";
    CloseTable3();
    include("footer.php");
    exit;
    }
    fclose($fd);

    include ('header.php');
    AdminLinks();
    OpenTable3("90%");
    echo "
    CONFIRM TO SEND THIS E-NEWSLETTER ?

    ";
    OpenTable("90%");
    echo "";
    echo "".stripslashes($content)."

    ";
    echo "";
    echo "";
    echo "";
    echo "";
    echo "";
    echo "";
    echo "";
    echo "";
    CloseTable();
    CloseTable3();
    include("footer.php");
    }

    [/php]

    : : i have problems in sending email in bulk.when i send email with attachment to many people at the same time, the receiver claims that the emails does not have sender's information, its empty,even the date sent also missing.but when it sent to one person, the problem does not occur.
    : :
    : : why is this happening?is it because of the email server or mail coding?
    :
    :
    : Well we would have to see your code to know if that is the problem, but I would suspect it is being flagged as spam and rejected because of that. Multiple recipients and attachments...with how paranoid people have to be about email these days, unfortunately that's just asking for trouble.
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories