Language Text Definitions | Last Update: 15th July, 2005 Article ID: 53 |
tep_mail($to_name, $to_email_address, $email_subject, $email_body, $from_name, $from_email_address); ?>
// Mail a (silent) report to the web owner:
// get ip
if (getenv('HTTP_X_FORWARDED_FOR')) {
$ip=getenv('HTTP_X_FORWARDED_FOR');
} else {
$ip=getenv('REMOTE_ADDR');
}
// build report
$report = 'Here are the details of the T.A.F. submission by ' . $from_name . ' on ' . date("D M j G:i:s Y") . ':';
$report .= "nn" . 'Recipient details: ' . $HTTP_POST_VARS['friendname'] . ' - ' . $HTTP_POST_VARS['friendemail'];
$report .= "n" . 'Sender details: ' . $from_name . ' - ' . $from_email_address;
$report .= "n" . 'Sender ip address: ' . $ip;
$report .= "n" . 'Personal message: ' . "nn" . $HTTP_POST_VARS['yourmessage'];
$report .= "nn" . 'Product link: ' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_PRODUCT_INFO . '?products_id=' . $HTTP_GET_VARS['products_id'];
// mail report
tep_mail('Tell A Friend', 'you@youraddress.com', '[ REPORT ] Tell a Friend Usage', stripslashes($report), '', $from_email_address);
// additional text message
$email_order .= "rnThank you for your order! rn Enjoy! rn" .
// end of additional text message
// lets start with the email confirmation
$email_order = STORE_NAME . "n" .
// lets start with the email confirmation
$email_order = STORE_NAME . "n" .
//
$email_order = "rnThank you for your order! rnrn Enjoy! rn" .
//
EMAIL_SEPARATOR . "n" .
Trademark Policy | Copyright Policy | Sitemap Copyright © 2000-2005 osCommerce. All rights reserved. |