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

Confirmation order handler sends double mail

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.3.0, 4.4.0
    • Legacy > Webshop
    • None
    • 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

            unknown unknown
            proos proos
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: