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
Is there a symbol for a right arrow with a square in the middle?
Which Sci-Fi work first showed weapon of galactic-scale mass destruction?
How to deal with fear of taking dependencies
Are there any other methods to apply to solving simultaneous equations?
Is there any way to tell whether the shot is going to hit you or not?
Why is the maximum length of OpenWrt’s root password 8 characters?
Why hard-Brexiteers don't insist on a hard border to prevent illegal immigration after Brexit?
Pokemon Turn Based battle (Python)
Can a rogue use sneak attack with weapons that have the thrown property even if they are not thrown?
Have you ever entered Singapore using a different passport or name?
What is the closest word meaning "respect for time / mindful"
Worn-tile Scrabble
How to answer pointed "are you quitting" questioning when I don't want them to suspect
Shouldn't "much" here be used instead of "more"?
One word riddle: Vowel in the middle
Is three citations per paragraph excessive for undergraduate research paper?
Did Section 31 appear in Star Trek: The Next Generation?
Delete all lines which don't have n characters before delimiter
Right tool to dig six foot holes?
Can someone be penalized for an "unlawful" act if no penalty is specified?
What do hard-Brexiteers want with respect to the Irish border?
Did Scotland spend $250,000 for the slogan "Welcome to Scotland"?
What does Linus Torvalds mean when he says that Git "never ever" tracks a file?
Aging parents with no investments
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;
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
add a comment |
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
add a comment |
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
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
magento2 email controllers delete smtp
asked 9 mins ago
prabhakaran7prabhakaran7
31911
31911
add a comment |
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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