这是我找到的最好的方法.当然,这将需要您的所有邮政编码在数据库中编码.// get all the zipcodes within the specified radius - default 20function zipcodeRadius($lat, $lon, $radius){$radius = $radius ? $radius : 20;$sql = 'SELECT distinct(ZipCode) FR
public function sendMail($to, $title, $content) {Vendor('PHPMailer.PHPMailerAutoload');$mail = new \PHPMailer(); //实例化$mail->IsSMTP(); // 启用SMTP$mail->Host = C('MAIL_HOST'); //smtp服务器的名称(这里以QQ邮箱为例