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

          Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

          Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form