⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sendmail.php

📁 这个版本只是修正了一些BUG
💻 PHP
字号:
<?php
/*************************************************
    	sendmail.php - 寄送EMAIL程序

	Version  : 1.2
	Author   : Tracemouse (tracemouse@msn.com)
	Copyright: www.vitci.com
	Writed   : 2003/12/02
	Modified : 2004/04/14
**************************************************/
require "./include/base.php";

if (!$productid)	$productid=0;
$productid=intval($productid);

$query = $db->query("SELECT * FROM $table_products WHERE productid=$productid");
if(!($product=$db->fetch_array($query)))
	showmessage('product not found');

if($sendsubmit)
{
	if(empty($fromname) || empty($frommail) || empty($toname) || empty($tomail)) 
		showmessage('alt_email_friend_invalid');
    	if(!checkEmail($frommail))  
    		showmessage('err_updprofile_email');
    	if(!checkEmail($tomail))  
    		showmessage('err_updprofile_email');
    	$message = $toname.",".$message;
  	sendmail($tomail, $subject, $message, "$fromname <$frommail>");
   	showmessage('suc_email_friend', $product_url);
}

if($islogin)
{
 	$query = $db->query("SELECT email FROM $table_members WHERE username='$_login_user'");
 	$frommail = $db->result($query,0);
}

$nav .= SEPARATER."<a href='$product_url'>".$product[productname]."</a>";
$nav .= SEPARATER.$language[email_friend];
include template('sendmail');
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -