dongzhao5970 2016-09-15 01:19
浏览 71

为什么mandrill send_at与php正在立即发送

I have a script that prepares an email and then schedules it to send 24 hours later... I call the Mandrill API

$mandrill->messages->sendTemplate($template_name, $template_content, $message, (string)$send_at);

and the send_at value is 2016-09-15 09:09:28 or whatever in the future.

The email triggers right away though!! How do I get it to send 24 hours in the future.

  • 写回答

1条回答 默认 最新

  • dongyong8491 2016-09-15 06:23
    关注

    Are you using a UTC timestamp? Have proper credit on file to use this feature?

    Send at documentation from https://mandrillapp.com/api/docs/messages.php.html: when this message should be sent as a UTC timestamp in YYYY-MM-DD HH:MM:SS format. If you specify a time in the past, the message will be sent immediately. An additional fee applies for scheduled email, and this feature is only available to accounts with a positive balance. Validation: datetime

    评论

报告相同问题?

悬赏问题

  • ¥15 C#读写EXCEL文件,不同编译
  • ¥15 如何提取csv文件中需要的列,将其整合为一篇完整文档,并进行jieba分词(语言-python)
  • ¥15 MapReduce结果输出到HBase,一直连接不上MySQL
  • ¥15 扩散模型sd.webui使用时报错“Nonetype”
  • ¥15 stm32流水灯+呼吸灯+外部中断按键
  • ¥15 将二维数组,按照假设的规定,如0/1/0 == "4",把对应列位置写成一个字符并打印输出该字符
  • ¥15 NX MCD仿真与博途通讯不了啥情况
  • ¥15 win11家庭中文版安装docker遇到Hyper-V启用失败解决办法整理
  • ¥15 gradio的web端页面格式不对的问题
  • ¥15 求大家看看Nonce如何配置