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