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

Which Sci-Fi work first showed weapon of galactic-scale mass destruction?

What is the meaning of Triage in Cybersec world?

Have you ever entered Singapore using a different passport or name?

Why is the Constellation's nose gear so long?

Is three citations per paragraph excessive for undergraduate research paper?

Loose spokes after only a few rides

Protecting Dualbooting Windows from dangerous code (like rm -rf)

FPGA - DIY Programming

Where to refill my bottle in India?

How can I autofill dates in Excel excluding Sunday?

Right tool to dig six foot holes?

Worn-tile Scrabble

Should I use my personal e-mail address, or my workplace one, when registering to external websites for work purposes?

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

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

Is "plugging out" electronic devices an American expression?

Feature engineering suggestion required

Can we generate random numbers using irrational numbers like π and e?

Apparent duplicates between Haynes service instructions and MOT

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

Is flight data recorder erased after every flight?

Multiply Two Integer Polynomials

Can a rogue use sneak attack with weapons that have the thrown property even if they are not thrown?

What is the closest word meaning "respect for time / mindful"



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 3 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

          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

          Magento 2 disable Secret Key on URL's from terminal The Next CEO of Stack OverflowMagento 2 Shortcut/GUI tool to perform commandline tasks for windowsIn menu add configuration linkMagento oAuth : Generating access token and access secretMagento 2 security key issue in Third-Party API redirect URIPublic actions in admin controllersHow to Disable Cache in Custom WidgetURL Key not changing in Magento 2Product URL Key gets deleted when importing custom options - Magento 2Problem with reindex terminalMagento 2 - bin/magento Commands not working in Cpanel Terminal

          Aasi (pallopeli) Navigointivalikko