how to fix 5.5.2 Syntax error. m189sm22281031qkf.2 - gsmtp in magento 2 email The 2019 Stack Overflow Developer Survey Results Are InI created a custom module ,but getting error, not able to figure out what the error is about. How to get out of this error?Magento 2.1: Invoke urlBuilder->getUrl() in a controller in a custom moduleMagento 2: How to override newsletter Subscriber modelMagentoFrameworkObjectManagerObjectManager givenMagento offline custom Payment method with drop down listMagento 2 Create dynamic array From different Model Collection to use in multi select in gridMonolog Error After 2.2 UpgradePHP fatal error: Uncaught TypeError: Argument 2 passed to MagentoCatalogPluginBlockTopmenuMagento 2.3 Can't view module's front end page output?Magento 2 Error

Why is the maximum length of OpenWrt’s root password 8 characters?

How to manage monthly salary

Geography at the pixel level

What tool would a Roman-age civilization have for the breaking of silver and other metals into dust?

How technical should a Scrum Master be to effectively remove impediments?

Can a flute soloist sit?

Aging parents with no investments

What is the motivation for a law requiring 2 parties to consent for recording a conversation

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

How to save as into a customized destination on macOS?

What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?

Why not take a picture of a closer black hole?

If a Druid sees an animal’s corpse, can they Wild Shape into that animal?

How to type this arrow in math mode?

Is an up-to-date browser secure on an out-of-date OS?

Lightning Grid - Columns and Rows?

Is three citations per paragraph excessive for undergraduate research paper?

How are circuits which use complex ICs normally simulated?

How to support a colleague who finds meetings extremely tiring?

Identify boardgame from Big movie

One word riddle: Vowel in the middle

Multiply Two Integer Polynomials

Return to UK after being refused entry years previously

What is the accessibility of a package's `Private` context variables?



how to fix 5.5.2 Syntax error. m189sm22281031qkf.2 - gsmtp in magento 2 email



The 2019 Stack Overflow Developer Survey Results Are InI created a custom module ,but getting error, not able to figure out what the error is about. How to get out of this error?Magento 2.1: Invoke urlBuilder->getUrl() in a controller in a custom moduleMagento 2: How to override newsletter Subscriber modelMagentoFrameworkObjectManagerObjectManager givenMagento offline custom Payment method with drop down listMagento 2 Create dynamic array From different Model Collection to use in multi select in gridMonolog Error After 2.2 UpgradePHP fatal error: Uncaught TypeError: Argument 2 passed to MagentoCatalogPluginBlockTopmenuMagento 2.3 Can't view module's front end page output?Magento 2 Error



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















controller



delete.php



<?php


namespace WebkulMpquotesystemControllerAdminhtmlManagequotes;

use MagentoBackendAppAction;
use WebkulMpquotesystem;

class Delete extends MagentoBackendAppAction

protected $_mpQuoteHelper;
protected $_mpquoteMailHelper;
protected $_collectionFactory;
protected $_objectManager;


/**
* @param ActionContext $context
* @param MpquotesystemHelperData $mpQuoteHelper
*/

public function __construct(
ActionContext $context,
MpquotesystemHelperMail $mailHelper,
MagentoFrameworkObjectManagerInterface $objectmanager,
MpquotesystemModelResourceModelQuotesCollectionFactory $collectionFactory,

MpquotesystemHelperData $mpQuoteHelper
)
parent::__construct($context);
$this->_mpQuoteHelper = $mpQuoteHelper;
$this->_mpquoteMailHelper = $mailHelper;
$this->_objectManager = $objectmanager;

$this->_collectionFactory = $collectionFactory;

protected function _isAllowed()

return $this->_authorization->isAllowed(
'Webkul_Mpquotesystem::mpquotes'
);

/**
* Delete action
*
* @return MagentoFrameworkControllerResultInterface
*/
public function execute()

$data = $this->getRequest()->getParams();
/** @var MagentoBackendModelViewResultRedirect $resultRedirect */
$resultRedirect = $this->resultRedirectFactory->create();
if ($data)
$model = $this->_mpQuoteHelper->getWkQuoteModel();
$id = $this->getRequest()->getParam('entity_id');
if ($id)
$model->load($id);





try
$model->delete();
$sellerlist='';


/* send deleted quote to email to seller and buyer - icore*/

// $objectManager = MagentoFrameworkAppObjectManager::getInstance();
$model2=$this->_objectManager->create('WebkulMpquotesystemModelSellerQuotes');
$datacollection=$model2->getCollection();


$data['quote_message']="Quote has been deleted by admin";



foreach ($datacollection as $data)


$dc=$data->getData('quote_id');
$delp=$data->getData('seller_quote_price');

foreach ((array)$dc as $test)


if($test==$id)

if($delp!=0.0000)
$sellerlist=$data->getData('seller_id');






$data['quote_message']="Quote has been deleted by admin";
if($sellerlist)
$this->_mpquoteMailHelper->quoteEditedByAdminbid(
$id,
$data['quote_message'],
'admin'
);



else
echo $id;
$this->_mpquoteMailHelper->quoteStatusMail(
$id,
$data['quote_message'],
'admin'
);



$this->messageManager->addSuccess(__('Quote is Successfully deleted'));
return $resultRedirect->setPath('*/*/');
catch (MagentoFrameworkExceptionLocalizedException $e)
$this->messageManager->addError(__($e->getMessage()));
catch (RuntimeException $e)
$this->messageManager->addError(__($e->getMessage()));
catch (Exception $e)
$this->messageManager->addException(
$e,
__('Something went wrong while Deleting the data.')
);

$this->_getSession()->setFormData($data);
return $resultRedirect->setPath('*/*/');

return $resultRedirect->setPath('*/*/');





delete() is working fine but when hide Delete method the email is working



how i can fix this error in email










share




























    0















    controller



    delete.php



    <?php


    namespace WebkulMpquotesystemControllerAdminhtmlManagequotes;

    use MagentoBackendAppAction;
    use WebkulMpquotesystem;

    class Delete extends MagentoBackendAppAction

    protected $_mpQuoteHelper;
    protected $_mpquoteMailHelper;
    protected $_collectionFactory;
    protected $_objectManager;


    /**
    * @param ActionContext $context
    * @param MpquotesystemHelperData $mpQuoteHelper
    */

    public function __construct(
    ActionContext $context,
    MpquotesystemHelperMail $mailHelper,
    MagentoFrameworkObjectManagerInterface $objectmanager,
    MpquotesystemModelResourceModelQuotesCollectionFactory $collectionFactory,

    MpquotesystemHelperData $mpQuoteHelper
    )
    parent::__construct($context);
    $this->_mpQuoteHelper = $mpQuoteHelper;
    $this->_mpquoteMailHelper = $mailHelper;
    $this->_objectManager = $objectmanager;

    $this->_collectionFactory = $collectionFactory;

    protected function _isAllowed()

    return $this->_authorization->isAllowed(
    'Webkul_Mpquotesystem::mpquotes'
    );

    /**
    * Delete action
    *
    * @return MagentoFrameworkControllerResultInterface
    */
    public function execute()

    $data = $this->getRequest()->getParams();
    /** @var MagentoBackendModelViewResultRedirect $resultRedirect */
    $resultRedirect = $this->resultRedirectFactory->create();
    if ($data)
    $model = $this->_mpQuoteHelper->getWkQuoteModel();
    $id = $this->getRequest()->getParam('entity_id');
    if ($id)
    $model->load($id);





    try
    $model->delete();
    $sellerlist='';


    /* send deleted quote to email to seller and buyer - icore*/

    // $objectManager = MagentoFrameworkAppObjectManager::getInstance();
    $model2=$this->_objectManager->create('WebkulMpquotesystemModelSellerQuotes');
    $datacollection=$model2->getCollection();


    $data['quote_message']="Quote has been deleted by admin";



    foreach ($datacollection as $data)


    $dc=$data->getData('quote_id');
    $delp=$data->getData('seller_quote_price');

    foreach ((array)$dc as $test)


    if($test==$id)

    if($delp!=0.0000)
    $sellerlist=$data->getData('seller_id');






    $data['quote_message']="Quote has been deleted by admin";
    if($sellerlist)
    $this->_mpquoteMailHelper->quoteEditedByAdminbid(
    $id,
    $data['quote_message'],
    'admin'
    );



    else
    echo $id;
    $this->_mpquoteMailHelper->quoteStatusMail(
    $id,
    $data['quote_message'],
    'admin'
    );



    $this->messageManager->addSuccess(__('Quote is Successfully deleted'));
    return $resultRedirect->setPath('*/*/');
    catch (MagentoFrameworkExceptionLocalizedException $e)
    $this->messageManager->addError(__($e->getMessage()));
    catch (RuntimeException $e)
    $this->messageManager->addError(__($e->getMessage()));
    catch (Exception $e)
    $this->messageManager->addException(
    $e,
    __('Something went wrong while Deleting the data.')
    );

    $this->_getSession()->setFormData($data);
    return $resultRedirect->setPath('*/*/');

    return $resultRedirect->setPath('*/*/');





    delete() is working fine but when hide Delete method the email is working



    how i can fix this error in email










    share
























      0












      0








      0








      controller



      delete.php



      <?php


      namespace WebkulMpquotesystemControllerAdminhtmlManagequotes;

      use MagentoBackendAppAction;
      use WebkulMpquotesystem;

      class Delete extends MagentoBackendAppAction

      protected $_mpQuoteHelper;
      protected $_mpquoteMailHelper;
      protected $_collectionFactory;
      protected $_objectManager;


      /**
      * @param ActionContext $context
      * @param MpquotesystemHelperData $mpQuoteHelper
      */

      public function __construct(
      ActionContext $context,
      MpquotesystemHelperMail $mailHelper,
      MagentoFrameworkObjectManagerInterface $objectmanager,
      MpquotesystemModelResourceModelQuotesCollectionFactory $collectionFactory,

      MpquotesystemHelperData $mpQuoteHelper
      )
      parent::__construct($context);
      $this->_mpQuoteHelper = $mpQuoteHelper;
      $this->_mpquoteMailHelper = $mailHelper;
      $this->_objectManager = $objectmanager;

      $this->_collectionFactory = $collectionFactory;

      protected function _isAllowed()

      return $this->_authorization->isAllowed(
      'Webkul_Mpquotesystem::mpquotes'
      );

      /**
      * Delete action
      *
      * @return MagentoFrameworkControllerResultInterface
      */
      public function execute()

      $data = $this->getRequest()->getParams();
      /** @var MagentoBackendModelViewResultRedirect $resultRedirect */
      $resultRedirect = $this->resultRedirectFactory->create();
      if ($data)
      $model = $this->_mpQuoteHelper->getWkQuoteModel();
      $id = $this->getRequest()->getParam('entity_id');
      if ($id)
      $model->load($id);





      try
      $model->delete();
      $sellerlist='';


      /* send deleted quote to email to seller and buyer - icore*/

      // $objectManager = MagentoFrameworkAppObjectManager::getInstance();
      $model2=$this->_objectManager->create('WebkulMpquotesystemModelSellerQuotes');
      $datacollection=$model2->getCollection();


      $data['quote_message']="Quote has been deleted by admin";



      foreach ($datacollection as $data)


      $dc=$data->getData('quote_id');
      $delp=$data->getData('seller_quote_price');

      foreach ((array)$dc as $test)


      if($test==$id)

      if($delp!=0.0000)
      $sellerlist=$data->getData('seller_id');






      $data['quote_message']="Quote has been deleted by admin";
      if($sellerlist)
      $this->_mpquoteMailHelper->quoteEditedByAdminbid(
      $id,
      $data['quote_message'],
      'admin'
      );



      else
      echo $id;
      $this->_mpquoteMailHelper->quoteStatusMail(
      $id,
      $data['quote_message'],
      'admin'
      );



      $this->messageManager->addSuccess(__('Quote is Successfully deleted'));
      return $resultRedirect->setPath('*/*/');
      catch (MagentoFrameworkExceptionLocalizedException $e)
      $this->messageManager->addError(__($e->getMessage()));
      catch (RuntimeException $e)
      $this->messageManager->addError(__($e->getMessage()));
      catch (Exception $e)
      $this->messageManager->addException(
      $e,
      __('Something went wrong while Deleting the data.')
      );

      $this->_getSession()->setFormData($data);
      return $resultRedirect->setPath('*/*/');

      return $resultRedirect->setPath('*/*/');





      delete() is working fine but when hide Delete method the email is working



      how i can fix this error in email










      share














      controller



      delete.php



      <?php


      namespace WebkulMpquotesystemControllerAdminhtmlManagequotes;

      use MagentoBackendAppAction;
      use WebkulMpquotesystem;

      class Delete extends MagentoBackendAppAction

      protected $_mpQuoteHelper;
      protected $_mpquoteMailHelper;
      protected $_collectionFactory;
      protected $_objectManager;


      /**
      * @param ActionContext $context
      * @param MpquotesystemHelperData $mpQuoteHelper
      */

      public function __construct(
      ActionContext $context,
      MpquotesystemHelperMail $mailHelper,
      MagentoFrameworkObjectManagerInterface $objectmanager,
      MpquotesystemModelResourceModelQuotesCollectionFactory $collectionFactory,

      MpquotesystemHelperData $mpQuoteHelper
      )
      parent::__construct($context);
      $this->_mpQuoteHelper = $mpQuoteHelper;
      $this->_mpquoteMailHelper = $mailHelper;
      $this->_objectManager = $objectmanager;

      $this->_collectionFactory = $collectionFactory;

      protected function _isAllowed()

      return $this->_authorization->isAllowed(
      'Webkul_Mpquotesystem::mpquotes'
      );

      /**
      * Delete action
      *
      * @return MagentoFrameworkControllerResultInterface
      */
      public function execute()

      $data = $this->getRequest()->getParams();
      /** @var MagentoBackendModelViewResultRedirect $resultRedirect */
      $resultRedirect = $this->resultRedirectFactory->create();
      if ($data)
      $model = $this->_mpQuoteHelper->getWkQuoteModel();
      $id = $this->getRequest()->getParam('entity_id');
      if ($id)
      $model->load($id);





      try
      $model->delete();
      $sellerlist='';


      /* send deleted quote to email to seller and buyer - icore*/

      // $objectManager = MagentoFrameworkAppObjectManager::getInstance();
      $model2=$this->_objectManager->create('WebkulMpquotesystemModelSellerQuotes');
      $datacollection=$model2->getCollection();


      $data['quote_message']="Quote has been deleted by admin";



      foreach ($datacollection as $data)


      $dc=$data->getData('quote_id');
      $delp=$data->getData('seller_quote_price');

      foreach ((array)$dc as $test)


      if($test==$id)

      if($delp!=0.0000)
      $sellerlist=$data->getData('seller_id');






      $data['quote_message']="Quote has been deleted by admin";
      if($sellerlist)
      $this->_mpquoteMailHelper->quoteEditedByAdminbid(
      $id,
      $data['quote_message'],
      'admin'
      );



      else
      echo $id;
      $this->_mpquoteMailHelper->quoteStatusMail(
      $id,
      $data['quote_message'],
      'admin'
      );



      $this->messageManager->addSuccess(__('Quote is Successfully deleted'));
      return $resultRedirect->setPath('*/*/');
      catch (MagentoFrameworkExceptionLocalizedException $e)
      $this->messageManager->addError(__($e->getMessage()));
      catch (RuntimeException $e)
      $this->messageManager->addError(__($e->getMessage()));
      catch (Exception $e)
      $this->messageManager->addException(
      $e,
      __('Something went wrong while Deleting the data.')
      );

      $this->_getSession()->setFormData($data);
      return $resultRedirect->setPath('*/*/');

      return $resultRedirect->setPath('*/*/');





      delete() is working fine but when hide Delete method the email is working



      how i can fix this error in email








      magento2 email controllers delete smtp





      share












      share










      share



      share










      asked 5 mins ago









      prabhakaran7prabhakaran7

      31911




      31911




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f269620%2fhow-to-fix-5-5-2-syntax-error-m189sm22281031qkf-2-gsmtp-in-magento-2-email%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f269620%2fhow-to-fix-5-5-2-syntax-error-m189sm22281031qkf-2-gsmtp-in-magento-2-email%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Magento 2 duplicate PHPSESSID cookie when using session_start() in custom php scriptMagento 2: User cant logged in into to account page, no error showing!Magento duplicate on subdomainGrabbing storeview from cookie (after using language selector)How do I run php custom script on magento2Magento 2: Include PHP script in headerSession lock after using Cm_RedisSessionscript php to update stockMagento set cookie popupMagento 2 session id cookie - where to find it?How to import Configurable product from csv with custom attributes using php scriptMagento 2 run custom PHP script

          Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

          How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2