how to fix 5.5.2 Syntax error. m189sm22281031qkf.2 - gsmtp in magento 2 email [on hold] The 2019 Stack Overflow Developer Survey Results Are In Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar ManaraI 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 are PDP-7-style microprogrammed instructions out of vogue?

Windows 10: How to Lock (not sleep) laptop on lid close?

How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?

What happens to a Warlock's expended Spell Slots when they gain a Level?

"is" operation returns false with ndarray.data attribute, even though two array objects have same id

What can I do if neighbor is blocking my solar panels intentionally?

Does Parliament need to approve the new Brexit delay to 31 October 2019?

Presidential Pardon

Word for: a synonym with a positive connotation?

US Healthcare consultation for visitors

Accepted by European university, rejected by all American ones I applied to? Possible reasons?

Do working physicists consider Newtonian mechanics to be "falsified"?

Do warforged have souls?

Can the DM override racial traits?

Sub-subscripts in strings cause different spacings than subscripts

Loose spokes after only a few rides

60's-70's movie: home appliances revolting against the owners

How to support a colleague who finds meetings extremely tiring?

Is there a writing software that you can sort scenes like slides in PowerPoint?

Didn't get enough time to take a Coding Test - what to do now?

Intergalactic human space ship encounters another ship, character gets shunted off beyond known universe, reality starts collapsing

How to handle characters who are more educated than the author?

Why not take a picture of a closer black hole?

Identify 80s or 90s comics with ripped creatures (not dwarves)



how to fix 5.5.2 Syntax error. m189sm22281031qkf.2 - gsmtp in magento 2 email [on hold]



The 2019 Stack Overflow Developer Survey Results Are In
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraI 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;








1















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|improve this question













put on hold as off-topic by Amit Bera yesterday


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions about third-party modules are generally off-topic because the scope of functionality and code are not available. For more information, see this meta post/answer." – Amit Bera
If this question can be reworded to fit the rules in the help center, please edit the question.






















    1















    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|improve this question













    put on hold as off-topic by Amit Bera yesterday


    This question appears to be off-topic. The users who voted to close gave this specific reason:


    • "Questions about third-party modules are generally off-topic because the scope of functionality and code are not available. For more information, see this meta post/answer." – Amit Bera
    If this question can be reworded to fit the rules in the help center, please edit the question.


















      1












      1








      1








      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|improve this question














      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|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked yesterday









      prabhakaran7prabhakaran7

      32411




      32411




      put on hold as off-topic by Amit Bera yesterday


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "Questions about third-party modules are generally off-topic because the scope of functionality and code are not available. For more information, see this meta post/answer." – Amit Bera
      If this question can be reworded to fit the rules in the help center, please edit the question.







      put on hold as off-topic by Amit Bera yesterday


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "Questions about third-party modules are generally off-topic because the scope of functionality and code are not available. For more information, see this meta post/answer." – Amit Bera
      If this question can be reworded to fit the rules in the help center, please edit the question.




















          0






          active

          oldest

          votes

















          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes

          Popular posts from this blog

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

          Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?