【问题标题】:Prestashop order-confirmation email attachement (terms and conditions)Prestashop 订单确认电子邮件附件(条款和条件)
【发布时间】:2014-02-19 19:24:49
【问题描述】:

我正在使用 Prestashop 1.5.4.1,我需要将存储在我的服务器上的新文件附件(.docx 文档)添加到订单确认电子邮件中。我该怎么办?

感谢您的宝贵时间 真挚地 约翰

【问题讨论】:

  • 我建议在您的电子邮件模板中添加指向您文档的链接,而不是作为附件发送。另外使用docx格式也不是很合适,我会使用PDF。
  • 是的,这就是我喜欢的 B 计划。谢谢

标签: email attachment prestashop confirmation-email


【解决方案1】:
 Mail::Send(
    5,
   'new_order',
   'New Order',
   array('{provider}' => 'Provider', '{title}' => 'My ePortal'),
   'provider@myportal.com',
   array('content' => $content, 'name' => $file, 'mime' => 'application/xml'),<------ attachment
   null,
   null
   null,
   _PS_MAIL_DIR_,
   false,
   (int)$order_id
);

【讨论】:

    猜你喜欢
    • 2014-11-03
    • 1970-01-01
    • 2013-11-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-21
    • 2014-03-20
    相关资源
    最近更新 更多