'postm2aster@zhzd.sendcloud.org', 'api_key' => 'c3jtY1seH', 'from' =>'914630468@qq.com', 'fromname' => '软件演示申请', 'subject' => '软件演示申请,'.$name.','.$unit, 'html'=>'姓名:'.$name.'
'.$gender.'
手机:'.$phoneNumber.'
电话:'.$telephoneNumber.'
QQ:'.$QQ.'
单位/公司:'.$unit.'
所在省/市:'.$Address.'
', // 'to' => '@qq.com' 'to' => '@qq.com' ); $post_data = http_build_query($param); $ch = curl_init(); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_HEADER, false); //设定是否输出页面内容 curl_setopt($ch, CURLOPT_NOBODY, false); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_exec($ch); curl_close($ch); header("Location: /succes.html"); } function get_args($name) { if (isset ( $_GET [$name] )) { if (is_array ( $_GET [$name] )) return $_GET [$name]; else { return addslashes ( $_GET [$name] ); } } elseif (isset ( $_POST [$name] )) { if (is_array ( $_POST [$name] )) return $_POST [$name]; else { return addslashes ( $_POST [$name] ); } } else { return false; } } ?>