sendmail.php

来自「这个版本只是修正了一些BUG」· PHP 代码 · 共 42 行

PHP
42 行
字号
<?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 + =
减小字号Ctrl + -
显示快捷键?