*please Help* Email Sending Problems

Discussion in 'PHP' started by locals, May 20, 2008.

  1. #1
    i have found this GREAT newsletter script . . . it installed fine but i am having problems with it sending the email from my aol account . . . really i think i just dont know how to configure it correctly. I have all the information maybe some one can help me put it into the proper place and get this working for me.

    here is the " MailChecker.php " . . . here is the aol port info and stuff . . .

    imap.aol.com (port 143)
    smtp.aol.com (port 587)



    ==========================================================

    # Start checking the mail...
    $query = "SELECT * FROM InfResp_POP3 WHERE username != 'username' AND password != 'password'";
    $DB_POP3_Result = mysql_query($query) or die("Invalid query: " . mysql_error());
    if (mysql_num_rows($DB_POP3_Result) > 0) {
    while ($POP3_Result = mysql_fetch_assoc($DB_POP3_Result)) {
    $DB_POP_ConfID = $POP3_Result['POP_ConfigID'];
    $DB_Pop_Enabled = $POP3_Result['ThisPOP_Enabled'];
    $DB_Confirm_Join = $POP3_Result['Confirm_Join'];
    $DB_Attached_Responder = $POP3_Result['Attached_Responder'];
    $DB_POP3_host = $POP3_Result['host'];
    $DB_POP3_port = $POP3_Result['port'];
    $DB_POP3_username = $POP3_Result['username'];
    $DB_POP3_password = $POP3_Result['password'];
    $DB_POP3_mailbox = $POP3_Result['mailbox'];
    $DB_HTML_YN = $POP3_Result['HTML_YN'];
    $DB_DeleteYN = $POP3_Result['Delete_After_Download'];
    $DB_SpamHeader = $POP3_Result['Spam_Header'];
    $DB_ConcatMid = $POP3_Result['Concat_Middle'];
    $DB_Mail_Type = $POP3_Result['Mail_Type'];
    if ($DB_Pop_Enabled == 1) {
    $Responder_ID = $DB_Attached_Responder;
    $conn = @imap_open("\{$DB_POP3_host:$DB_POP3_port/$DB_Mail_Type/notls}$DB_POP3_mailbox", $DB_POP3_username, $DB_POP3_password);
    #or die("Couldn't connect to server: $DB_POP3_host <br>\n");

    ==========================================================


    THANKS for your help ! ! !!
     
    locals, May 20, 2008 IP
  2. Small Solutions

    Small Solutions Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I simplified it a little bit. try using this:

    
    # Start checking the mail...
    $query = "SELECT * FROM InfResp_POP3 WHERE username != 'username' AND password != 'password'";
    
    $mail = mysql_query($query) or die("Invalid query: " . mysql_error());
    $check = mysql_num_rows($mail);
    
    if ($check > 0) {
    
    while ($row = mysql_fetch_array($mail)) {
    
    $DB_POP_ConfID = $row['POP_ConfigID'];
    $DB_Pop_Enabled = $row['ThisPOP_Enabled'];
    $DB_Confirm_Join = $row['Confirm_Join'];
    $DB_Attached_Responder = $row['Attached_Responder'];
    $DB_POP3_host = $row['host'];
    $DB_POP3_port = $row['port'];
    $DB_POP3_username = $row['username'];
    $DB_POP3_password = $row['password'];
    $DB_POP3_mailbox = $row['mailbox'];
    $DB_HTML_YN = $row['HTML_YN'];
    $DB_DeleteYN = $row['Delete_After_Download'];
    $DB_SpamHeader = $row['Spam_Header'];
    $DB_ConcatMid = $row['Concat_Middle'];
    $DB_Mail_Type = $row['Mail_Type'];
    
    }
    
    if ($DB_Pop_Enabled == 1) {
    $Responder_ID = $DB_Attached_Responder;
    $conn = @imap_open("{".$DB_POP3_host.":".$DB_POP3_port."/".$DB_Mail_Type."/notls}"$DB_POP3_mailbox, $DB_POP3_username, $DB_POP3_password);
    
    if(!$conn) {
    die("Couldn't connect to server: ".$DB_POP3_host." <br>\n");
    }
    
    }
    
    Code (markup):
     
    Small Solutions, May 20, 2008 IP