Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    271
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Modify to stop send email

    I have this script I use and it sends to the member and and to me I want to stop the sendint to the member as I want to approve there site before they get the email that it sends after i approve it


    I can not figure it what to remove to stop the one they get BUT keep the one I get

    THXS Steve



    //////////////////// SEND MAIL TO MEMBER/ bcc to admin ////////////////
    //Gets member info
    $rs0=mysql_fetch_array(mysql_query("select * from reciprocal_links where id=" . $id));

    $rs1=mysql_fetch_array(mysql_query("select * from sbreciprocal_cats where id=" . $rs0["cid"]));
    $category=$rs1["catname"];

    //Reads email to be sent
    $sql = "SELECT * FROM reciprocal_mails where id=1" ;
    $rs_query=mysql_query($sql);

    if ( $rs=mysql_fetch_array($rs_query) )
    {
    $from =$rs["fromid"];
    $to = $rs0["email"];
    $subject =$rs["subject"];
    $header="From:" . $from . "\r\n" ."Reply-To:". $from ;
    $body=str_replace("<category>", $category,str_replace("<email>", $rs0["email"],str_replace("<url>", $rs0["link"],str_replace("<reciprocallink>", $rs0["reciprocallink"],str_replace("<title>", $rs0["title"],str_replace("<urldescription>", $rs0["description"], $rs["mail"]) ))))) ;
    mail($to,$subject,$body,$header);
    // Reads Site config//////////////////
    $rs_query=mysql_query("Select * from reciprocal_config" );
    $rs_a=mysql_fetch_array($rs_query);
    $to1 = $rs_a["email"];

    mail("cc:" . $subject,$body,$header);
    //////////////////////////
    }
    ////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////

  • #2
    New Coder
    Join Date
    Aug 2005
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts
    which table has there email, and which table has yours?

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    271
    Thanks
    4
    Thanked 0 Times in 0 Posts
    I think this is where the script get the info of the member


    But where is the send line


    //Gets member info
    $rs0=mysql_fetch_array(mysql_query("select * from reciprocal_links where id=" . $id));

  • #4
    New Coder
    Join Date
    Aug 2005
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts
    then it looks like this would be the send line for that.
    mail($to,$subject,$body,$header);

    test it and see.

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Posts
    271
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Thxs Very MUCH

    I did not see that line

    Brain dead today

    Steve


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •