我只是想将 mandrill 邮件发送与我的应用程序集成,下面是我在 php 中的代码
$args = array(
'key' => '73357ad2-e59e-4669---------',
'message' => array(
"html" => "<p>\r\n\tHi Adam,</p>\r\n<p>\r\n\tThanks for <a href=\"http://mandrill.com\">registering</a>.</p>\r\n<p>etc etc</p>",
"text" => null,
"from_email" => "xxx@xxx.com",
"from_name" => "SIVOnline",
"subject" => "Your recent registration",
"to" => array(array("email" => "xxx@xxx.com")),
"track_opens" => true,
"track_clicks" => true,
"auto_text" => true
)
);
// Open a curl session for making the call
$curl = curl_init('https://mandrillapp.com/api/1.0/messages/send.json' );
// Tell curl to use HTTP POST
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
// Tell …Run Code Online (Sandbox Code Playgroud) 我想安排一个任务在PHP的某个时间运行,我正在使用codeigniter框架.所以想要写一个批处理文件来执行给定控制器中的给定函数.我为简单的php文件编写了一个批处理文件,它正常工作,但在为codeigniter编写时出错.
下面是我的codeigniter批处理文件
C:\ xampp\php\php.exe -f C:\ xampp\htdocs\DatabaseServices\index.php\controller_name\FUNCTION_NAME它发出错误'无法加载文件'