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

What does ひと匙 mean in this manga and has it been used colloquially?

How to support a colleague who finds meetings extremely tiring?

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?

What does Linus Torvalds mean when he says that Git "never ever" tracks a file?

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

Is there any way to tell whether the shot is going to hit you or not?

Did Section 31 appear in Star Trek: The Next Generation?

Shouldn't "much" here be used instead of "more"?

Why isn't airport relocation done gradually?

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

Worn-tile Scrabble

Is this app Icon Browser Safe/Legit?

Why not take a picture of a closer black hole?

Is a "Democratic" Oligarchy-Style System Possible?

What is the meaning of the verb "bear" in this context?

Why isn't the circumferential light around the M87 black hole's event horizon symmetric?

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

Falsification in Math vs Science

Is "plugging out" electronic devices an American expression?

Why hard-Brexiteers don't insist on a hard border to prevent illegal immigration after Brexit?

A poker game description that does not feel gimmicky

Did 3000BC Egyptians use meteoric iron weapons?

For what reasons would an animal species NOT cross a *horizontal* land bridge?



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

          کانن (شرکت) محتویات تاریخچه[ویرایش] بخشی از تولیدات موفق این شرکت[ویرایش] در رده APS-C[ویرایش] گزارش محیط زیست[ویرایش] رده‌بندی محصولات[ویرایش] منابع[ویرایش] پانویس[ویرایش] پیوند به بیرون[ویرایش] منوی ناوبریwww.canon.comموزه آنلاین دوربین‌های کانننمودار تاریخچه سهام کاننوبگاه رسمی شرکت کاننوووووIDC Worldwide Hardcopy 2013

          Rest API with Magento using PHP with example. Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How to update product using magento client library for PHP?Oauth Error while extending Magento Rest APINot showing my custom api in wsdl(url) and web service list?Using Magento API(REST) via IXMLHTTPRequest COM ObjectHow to login in Magento website using REST APIREST api call for Guest userMagento API calling using HTML and javascriptUse API rest media management by storeView code (admin)Magento REST API Example ErrorsHow to log all rest api calls in magento2?How to update product using magento client library for PHP?

          Magento 2 - Auto login with specific URL 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?Customer can't login - Page refreshes but nothing happensCustom Login page redirectURL to login with redirect URL after completionCustomer login is case sensitiveLogin with phone number or email address - Magento 1.9Magento 2: Set Customer Account Confirmation StatusCustomer auto connect from URLHow to call customer login form in the custom module action magento 2?Change of customer login error message magento2Referrer URL in modal login form