Prestashop 如何以编程方式发送电子邮件?
您好,我正试图在模块中的prestashop中发送电子邮件 但它不起作用Prestashop 如何以编程方式发送电子邮件?,prestashop,Prestashop,您好,我正试图在模块中的prestashop中发送电子邮件 但它不起作用 他们有办法做到这一点吗?你应该检查Mail类和Send方法 例如: Mail::Send( (int) $this->context->language->id, $this->getTemplate(), $this->getSubject(), $this->getTemplateVars(), $this->getTo(), $
他们有办法做到这一点吗?你应该检查
Mail
类和Send
方法
例如:
Mail::Send(
(int) $this->context->language->id,
$this->getTemplate(),
$this->getSubject(),
$this->getTemplateVars(),
$this->getTo(),
$this->getToName(),
$this->getFrom(),
$this->getFromName(),
$this->getFileAttachment(),
$this->isModeSmtp(),
$this->getTemplatePath(),
$this->isDie(),
(int) $this->context->shop->id,
$this->getBcc(),
$this->getReplyTo()
);
在整个系统中有更多的示例。只需在代码中搜索“Mail::Send”。您好,谢谢您的回答。您能用静态值编辑答案吗?