PDA

View Full Version : PHP Question



cpost
03-07-2008, 04:25 PM
how do i incorporate "smtp_port" into mail($email, $subject, $strip1,"From: $from_email\nReply-To: $replayto\nContent-Type: text/plain");

awol
03-07-2008, 04:30 PM
Since you put smtp_port, I'm guessing you mean outside the ini file.

You should be able to do,



ini_set('smtp_port', 25);

Vershun
03-07-2008, 04:30 PM
o.O why aren't you running your smtp server on the standard port?

But to change it you have to edit your php.ini as described in "Runtime Configuration" of: http://www.php.net/mail

awol
03-07-2008, 04:31 PM
I was quicker on the draw. :P

Vershun
03-07-2008, 04:32 PM
I was quicker on the draw. :P

lol touche.

cpost
03-07-2008, 06:41 PM
thank you guys :)

cpost
03-07-2008, 06:46 PM
Hmmm...


[mail function]
; For Win32 only.
SMTP = "localhost"
smtp_port = 25

; For Win32 only.
;sendmail_from = me@localhost.com;


; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = "/usr/sbin/sendmail -t -i"

................

So I edited the sendmail configs smtp port to 2500

And in ssh I did:
ssh -L 2500:localhost:25 @OTHERSERVER

Since I'm trying to tunnel it through that but the headers are still coming from my server -_-

rmk
03-07-2008, 09:55 PM
cpost i enjoy your little adventure into hacker/spammer land but you seriously need to go to kindergarten first

cpost
03-07-2008, 11:10 PM
im not doing awful thats the only thing i need :\ lol