这是什么问题?我无法使用我的服务器发送电子邮件,但使用不同的IP地址(例如代理服务器)。
警告: curl_setopt()期望参数2为长,第12行的[link]中给出字符串
<?
$ch = curl_init();
curl_setopt($ch, CURLOPT_PROXY, "103.10.22.242");
curl_setopt($ch, CURLOPT_PROXYPORT,3128);
curl_setopt($ch, CURLOPT_CONNECT_ONLY,true);
curl_exec($ch);
echo curl_error($ch);
$to = "you@your-domainname.com";
$nameto = "Who To";
$from = "script@your-domainname.com";
$namefrom = "Who From";
$subject = "Hello World Again!";
$message = "World, Hello!";
mail($from, $namefrom, $to, $nameto, $subject, $message);
?>