CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail Report with Unknown bounce type Error
Pages: [1]

Author Topic: CiviMail Report with Unknown bounce type Error  (Read 428 times)

sushant

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 8
  • CiviCRM version: v3.2.x,v3.3.x v4.0.x, v4.x,trunk
  • CMS version: Drupal 6/7 ,joomla 1.5,1.6
  • MySQL version: 5.1.51
  • PHP version: 5.3.3
CiviMail Report with Unknown bounce type Error
February 12, 2013, 08:13:07 pm
Its very difficult to find out the resaon for bounce ,  when we get unknown bounce type error in CiviMail report . One workaround i did is that added the log file specific to unknown bounce type to atleast log the error. Below is the patch i added in CRM/Mailing/BAO/Job.php
Code: [Select]
if ( empty( $params['bounce_type_id'] ) ) {
     $config = CRM_Core_Config::singleton( );
      // create the directory if not there
      $dirName = $config->configAndLogDir . 'mail' . DIRECTORY_SEPARATOR. 'CiviMail-Unknown-bounce' . DIRECTORY_SEPARATOR;
       CRM_Utils_File::createDir( $dirName );
      $content = $result->getMessage();
      $fileName = 'unknown-bounce'. md5( uniqid( CRM_Utils_String::munge( $fileName ) ) ) . '.txt';
       file_put_contents( $dirName . $fileName, $content );
    }

If this the right way we can add log file or any other way we can find out the error message, when we have unknown bounce type .May be we can add this in core to get log for same, than i can create issue in jira and submit the patch.

Any suggestions are welcome !!

S
CiviCRM Priority Support
http://support.civigardens.com/
http://osseed.com

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviMail Report with Unknown bounce type Error
February 13, 2013, 06:35:15 am

Sushant:

can yousee if you can do this via an extension. That is probably the more preferred way

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

sushant

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 8
  • CiviCRM version: v3.2.x,v3.3.x v4.0.x, v4.x,trunk
  • CMS version: Drupal 6/7 ,joomla 1.5,1.6
  • MySQL version: 5.1.51
  • PHP version: 5.3.3
Re: CiviMail Report with Unknown bounce type Error
February 13, 2013, 07:56:16 am
Yes sure,  i will do the same  :)
But any other better solution to do the same? which helps  me converting into better extension.

Thanks
S
CiviCRM Priority Support
http://support.civigardens.com/
http://osseed.com

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail Report with Unknown bounce type Error

This forum was archived on 2017-11-26.