
-----------------------------------
Homer_simpson
Sat Sep 13, 2003 1:57 pm

Mail command
-----------------------------------

I Know in order to use that command i need to setup somestuffs on my computer i'm just not sure what :S
(i'm using Windows System)

-----------------------------------
Amailer
Sat Sep 13, 2003 2:01 pm


-----------------------------------
in php.ini 

[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
sendmail_from = me@localhost.com


i think that is it

-----------------------------------
Homer_simpson
Sat Sep 13, 2003 2:18 pm


-----------------------------------
i already have that fixed 
[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
sendmail_from = Admin@localhost.com
but i get this warning :
Warning: Failed to Connect in c:\apache\htdocs\mail.php on line 2
with this code:



-----------------------------------
Amailer
Sat Sep 13, 2003 2:34 pm


-----------------------------------
oOo lol :D

@mail("me@me.com, "DAMM SUBJECT", "OM MESSAGE",  "From: \"$name\"\r\nX-Sender:$name using $email\r\nReturn-Path: Anonymous\r\nX-Mailer: Amailers $version\r\X-Message-Info: Anonymous\r\Received: Anonymous");


i used that for amailer, there is of course extra stuff :D

-----------------------------------
octopi
Sat Sep 13, 2003 3:33 pm


-----------------------------------
You need to change the 

SMTP = line to your smtp server of your isp.

Unless of course your running a smtp server on windows. (which you aren't)

-----------------------------------
Homer_simpson
Sat Sep 13, 2003 4:07 pm


-----------------------------------
do u know any good smtp servers that i could run on my comp?

-----------------------------------
octopi
Sat Sep 13, 2003 4:10 pm


-----------------------------------
Theres no point at all in running one.
So just use your isp's.

Even if you did set up your own, you would still have to tell it to pass stuff onto your ISP's anyway.

-----------------------------------
Homer_simpson
Sat Sep 13, 2003 5:22 pm


-----------------------------------
how do u do that exactly?!

-----------------------------------
octopi
Sat Sep 13, 2003 5:34 pm


-----------------------------------
to use your isp's mail server
just replace the word localhost with the address of your isp's smtp mailserver...

-----------------------------------
Homer_simpson
Sat Sep 13, 2003 7:33 pm


-----------------------------------
well how do i figure the address of the isp's stmp server?

-----------------------------------
octopi
Sat Sep 13, 2003 7:35 pm


-----------------------------------
Look in your isp's documention (website, books, cd's etc..)

Where else?

-----------------------------------
Homer_simpson
Sat Sep 13, 2003 8:03 pm


-----------------------------------
alright... thx
but for example can i use my hotmail account for this purpose?

-----------------------------------
octopi
Sat Sep 13, 2003 8:08 pm


-----------------------------------
No.
