Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-3406

UpdateMembershipRecord Script - smtp error ..

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.0, 2.1
    • Fix Version/s: 2.1
    • Component/s: CiviMember
    • Labels:
      None

      Description

      I was able to install civimail (with all the php & perl custom builds) and get it to work as well as civimembership. However, I have an outstanding issue with running the UpdateMembershipRecord script - one that I have been able to resolve manually.

      As per Lobo's request in the Forums, i'm posting an issue here so that it can be fixed in the 2.1 release. See -
      http://forum.civicrm.org/index.php?topic=4383.new;topicseen#new

      Details related to the SMTP transaction are below. There is a bug in civicrm. Specifically - email fields with incomplete addresses (ie. no @ or anything after it) lead to the script stopping. I mention this, as when I removed the entry with the incomplete email address - the script then worked fine.

      Thus -recommend that email field is OK before sending it out via the update script. If there's a problem skip it - instead of halting the whole script.

      Updating ...DEBUG: Recv: 220 npomail1-in.electricembers.net ESMTP Postfix
      DEBUG: Send: EHLO cpsr.net

      DEBUG: Recv: 250-npomail1-in.electricembers.net
      DEBUG: Recv: 250-PIPELINING
      DEBUG: Recv: 250-SIZE 100000000
      DEBUG: Recv: 250-VRFY
      DEBUG: Recv: 250-ETRN
      DEBUG: Recv: 250-STARTTLS
      DEBUG: Recv: 250-AUTH LOGIN PLAIN
      DEBUG: Recv: 250-AUTH=LOGIN PLAIN
      DEBUG: Recv: 250-ENHANCEDSTATUSCODES
      DEBUG: Recv: 250-8BITMIME
      DEBUG: Recv: 250 DSN
      DEBUG: Send: AUTH LOGIN

      DEBUG: Recv: 334 XXXXXXXXXXXXXXXXXXXXXXXX

      DEBUG: Send: XXXXXXXXXXXXXXXXXXXXXXXX

      DEBUG: Recv: 334 XXXXXXXXXXXXXXXXXXXXXXXX

      DEBUG: Send: XXXXXXXXXXXXXXXXXXXXXXXX

      DEBUG: Recv: 235 2.0.0 Authentication successful
      DEBUG: Send: MAIL FROM:<office@cpsr.org>

      DEBUG: Recv: 250 2.1.0 Ok
      DEBUG: Send: RCPT TO:<angelica@localhost>

      DEBUG: Recv: 550 5.1.1 <angelica@localhost>: Recipient address rejected: User unknown in local recipient table
      <p>backTrace</p><p><pre>/home/.mogg/rguerra/websites/cpsr2008/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 148
      , handle,
      /home/.mogg/rguerra/websites/cpsr2008/sites/all/modules/civicrm/packages/PEAR.php, call_user_func, 901
      /home/.mogg/rguerra/websites/cpsr2008/sites/all/modules/civicrm/packages/PEAR.php, PEAR_Error, 566
      /home/.mogg/rguerra/websites/cpsr2008/sites/all/modules/civicrm/packages/Net/SMTP.php, raiseError, 278
      /home/.mogg/rguerra/websites/cpsr2008/sites/all/modules/civicrm/packages/Net/SMTP.php, _parseResponse, 742
      /home/.mogg/rguerra/websites/cpsr2008/sites/all/modules/civicrm/packages/Mail/smtp.php, rcptTo, 288
      /home/.mogg/rguerra/websites/cpsr2008/sites/all/modules/civicrm/CRM/Core/BAO/MessageTemplates.php, send, 275
      /home/.mogg/rguerra/websites/cpsr2008/sites/all/modules/civicrm/bin/UpdateMembershipRecord.php, sendReminder, 135
      /home/.mogg/rguerra/websites/cpsr2008/sites/all/modules/civicrm/bin/UpdateMembershipRecord.php, updateMembershipStatus, 173</pre></p><p></p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

      <head>
      <title></title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <base href="https://cpsr.net/sites/all/modules/civicrm/" />
      <style type="text/css" media="screen">@import url(https://cpsr.net/sites/all/modules/civicrm/css/civicrm.css);</style>
      </head>

      <body>

      <div id="crm-container" lang="en" xml:lang="en">

      <div class="messages status">
      <dl>
      <dt><img src="https://cpsr.net/sites/all/modules/civicrm/i/Error.gif" alt="unrecoverable error" /></dt>
      <dd>
      Sorry. A non-recoverable error has occurred. <p>Invalid response code received from SMTP (outbound mail) server while attempting to send email. This is often caused by a misconfiguration in the CiviCRM Outbound Email settings. Please verify the settings at Administer CiviCRM >> Global Settings >> Outbound Email (SMTP).</p>
      <p><a href="https://cpsr.net/" title="Main Menu">Return to home page.</a></p>
      </dd>
      </dl>
      </div>

      </div>
      </body>
      </html><p>Error Details:</p><p><pre>Array
      (
      [callback] => Array
      (
      [0] => CRM_Core_Error
      [1] => handle
      )

      [code] =>
      [message] => Invalid response code received from SMTP (outbound mail) server while attempting to send email. This is often caused by a misconfiguration in the CiviCRM Outbound Email settings. Please verify the settings at Administer CiviCRM >> Global Settings >> Outbound Email (SMTP).
      [mode] => 16
      [debug_info] =>
      [type] => PEAR_Error
      [user_info] =>
      [to_string] => [pear_error: message="Invalid response code received from SMTP (outbound mail) server while attempting to send email. This is often caused by a misconfiguration in the CiviCRM Outbound Email settings. Please verify the settings at Administer CiviCRM >> Global Settings >> Outbound Email (SMTP)." code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
      )
      </pre></p><p></p>DEBUG: Send: QUIT

      DEBUG: Recv: 221 2.0.0 Bye

        Attachments

          Activity

            People

            • Assignee:
              kiran.jagtap Kiran Jagtap
              Reporter:
              robertguerra Robert Guerra
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: