Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-11-2006, 05:57 AM
ChB
Unregistered

Posts: n/a

No enters and IP+server info

In the .headers part, the script supposed to send the mailers IP address and other info. This doesn't work, I have no idea why.

And when I recieve an e-mail. There are no newlines made.

when I post for example:

Hello,

blablablabla

test


It looks like:
Hello,blablablablatest

Somebody got a solution for this problem?
Reply With Quote
  #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
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CsA BHD server info csadetox Delta Force 1 11-08-2010 07:07 PM
Team Pinoy Server Info and NEW Changes .DareDevil. Gaming Talk 4 02-01-2005 11:23 AM
Looking for server to rent...need info please MSG_Thunder Joint Operations 3 09-26-2004 09:21 AM
Change the IP port for game server IcIshoot Delta Force 3 03-08-2004 10:17 AM
-KP-'s CQB Server and Match Info Buzz Gaming Talk 0 11-20-2003 02:36 PM


All times are GMT -5. The time now is 01:15 PM.




Powered by vBulletin®