View Single Post
  #2  
Old 03-13-2006, 12:41 PM
Kurt
Unregistered

Posts: n/a

I'm a total hack at this but I fudged through it and made it work as I wanted this also.

STEP 1
First add this to the begining code in the phMailer.php
You can copy and past it, I left some of the original code to show you where you can put it....

PHP Code:
// This is an array of the email address for the array above. There must be an email FOR EACH array value specified above. You can have only 1 department if you want.
//YOU MUST HAVE THE SAME AMMOUNT OF $subjects and $emails or this WILL NOT work correctly! The emails also must be in order for what you specify above!
// You can also seperate the emails by a comma to sent 1 department to multiple email addresses.
$emails=array("dept_1@domain.com","dept_2@domain.com","dept_3@domain.com");

// NEW CODE, THIS IS THE DATE AND TIME
$date date("m/d/Y H:i:s");

// NEW CODE, THIS IS THE IP AND BROWSER INFO
if ($REMOTE_ADDR == ""$ip "no ip";
else 
$ip getHostByAddr($REMOTE_ADDR);

// This is the message that is sent after the email has been sent. You can use html here.
// If you want to redirect users to another page on your website use this: <script type=\"text/javascript\">window.location=\"http://www.YOUR_URL.com/page.html\";</script> 
STEP 2
Then mod this section, again you can just find this section and paste over it....

PHP Code:
//Message

$message "--".$boundary."\n";
$message.="Content-Type: text/plain; charset=\"iso-8859-1\"\n";
$message.="Content-Transfer-Encoding: quoted-printable\n";
$message.="\n";
$message.="$yourmessage \n\n";
$message.="$ip \n";
$message.="$date \n";
$message.="$HTTP_USER_AGENT \n";
$message.="\n"
Reply With Quote