【问题标题】:Is there a way in Shopware to get SMTP host address inside of custom plugin?Shopware 中有没有办法在自定义插件中获取 SMTP 主机地址?
【发布时间】:2018-05-04 18:44:29
【问题描述】:

我需要来自“商店设置 > 邮件程序 > 邮件主机”字段的值。有没有办法得到它?

【问题讨论】:

  • 看来你的概念是错误的——你为什么需要主机?您应该使用 Mailer-Service 发送电子邮件。

标签: shopware


【解决方案1】:

您可以获取如下配置数据:

Shopware()->Config()->get('MailerHost')

任何参数都可以作为camelCase?

数据库:-> Shopware

underscore_case ->      camelCase

【讨论】:

    猜你喜欢
    • 2016-02-21
    • 1970-01-01
    • 1970-01-01
    • 2022-08-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-15
    相关资源
    最近更新 更多