Jump to content

crazy manzaaa

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

crazy manzaaa's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. here's my take: by using $this->query[$field], you already specify the array's 'key' (=$field).  However, the mysql_query(...) returns a result (which is also an array) that has its own 'key' .  So, you don't need to specify the key. I don't know if this will work or not.  Try to use $this->query[] instead.  If that doesn't work, nevermind.  You already get an array anyway.
  2. Maybe it would be helpful if you also include more information about "$test_session->questions" since that seemd to be the variable that the error message is pointing too.
  3. Thanks xAtlas. Actually I figured out the problem already.  It is related to SMTP server naming, and once I changed the SMTP server it worked like a charm.  Too bad I spent so much time trying to debug the code :-[ And I will use [ code] next time. Btw I'm new here and this forum looks very interesting.
  4. Hi all, I really need help to solve this problem. Does anyone ever experience the following error with phpMailer: Mailer Error: Language string failed to load: recipients_failed I use Apache 2.2.0 and PHP4.4.2. and only recently the email function on my website is broken and I got the above error message.  Below is the code that I have: <CODE> require("class.phpmailer.php"); require_once("class.smtp.php"); require_once('phpmailer.lang-en.php') ; $mail = new PHPMailer(); $mail->IsSMTP();                                      // set mailer to use SMTP $mail->Host = "<REMOVED>;<REMOVED>";  // specify main and backup server $mail->SMTPAuth = true;    // turn on SMTP authentication $mail->Username = "<REMOVED>";  // SMTP username $mail->Password = "<REMOVED>"; // SMTP password $mail->From = $email; $mail->FromName = $name; $mail->AddAddress('<REMOVED>'); $mail->WordWrap = 50;    $mail->IsHTML(true);        $mail->Subject = $subject; $mail->Body    =  $message; $mail->AltBody = "This is the body in plain text for non-HTML users"; $uploaddir = '<REMOVED>'; $uploadfile = $uploaddir . basename($_FILES['userfile']['name']); echo '<pre>'; if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {   $upload_ok = true; } else {   $upload_ok = false; } $mail->AddAttachment($uploadfile); $mail->Send(); if(!$mail->Send()) {   echo "Message was not sent <br />";   echo "Mailer Error: " . $mail->ErrorInfo."<br />"; } else {   echo "Message has been sent"; } </CODE> I wonder if anyone knows how to get around with this?  Any help would be greatly appreciated. Thanks in advance!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.