How to prevent sending of emails using event Enlight_Components_Mail_Send?

流过昼夜 提交于 2020-01-16 08:47:14

问题


Is there a way to tell shopware not to send email inside of function called by event "Enlight_Components_Mail_Send"?


回答1:


Do you want to deprecate all emails in shopware or certain?

If you want to deprecate all emails in shopware you need to add into SHOPWARE_ROOT/config.php

<?php return array (
  'db' => 
  array (
    'host' => 'YOU_HOST',
    'port' => 'YOU_PORT',
    'username' => 'YOU_USER',
    'password' => 'YOU_PASS',
    'dbname' => 'YOU_DATABASE',
  ),
  'mail' =>
  array(
     'type' => 'file',
  )
);

In this case mail will be saved as file instead of sending via SMTP.



来源:https://stackoverflow.com/questions/50291801/how-to-prevent-sending-of-emails-using-event-enlight-components-mail-send

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!