Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-17510

Confirmation order handler sends double mail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Obsolete
    • Affects Version/s: 4.3.0, 4.4.0
    • Fix Version/s: None
    • Component/s: Legacy > Webshop
    • Labels:
      None
    • Environment:

      Operating System:
      PHP Version: 5.2.10)
      Database and version:Mysql
      Browser (and version): all

      Description

      In file kernel\classes\confirmorderhandlers\ezdefaultconfirmorderhandler.php we have double mail sending code from line 87-98

      $emailSender = $ini->variable( "MailSettings", "AdminEmail" );

      if ( $tpl->hasVariable( 'content_type' ) )
      $mail->setContentType( $tpl->variable( 'content_type' ) );

      $mail->setReceiver( $email );
      $mail->setSender( $emailSender );
      $mail->setSubject( $subject );
      $mail->setBody( $templateResult );
      $mailResult = eZMailTransport::send( $mail );
      @@---
      $email = $ini->variable( 'MailSettings', 'AdminEmail' );

      $mail = new eZMail();

      if ( $tpl->hasVariable( 'content_type' ) )
      $mail->setContentType( $tpl->variable( 'content_type' ) );

      $mail->setReceiver( $email );
      $mail->setSender( $emailSender );
      $mail->setSubject( $subject );
      $mail->setBody( $templateResult );
      $mailResult = eZMailTransport::send( $mail );@@

      Steps to reproduce

      After you purchase item admin is receving two mails.

        Attachments

          Activity

            People

            Assignee:
            unknown unknown
            Reporter:
            proos Mario Ivancic
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: