| whoelse 2002-10-30, 1:24 am |
| Hi, I'm a novice PHP programmer and my first time using mail() function.
(Platform: Linux MDK9.0)
I have this senario:
my isp smtp: mail.myisp.com
my username: myname@myisp.com
I know I need to do something with sendmail. I have sendmail loaded and
running, reading from deja mentioned I need to set relay in sendmail.cf:
DS to DSmail.myisp.com
DM to DMmyname@myisp.com
I also add php.ini:
sendmail_path = /usr/sbin/sendmail -t -i
In my PHP test script:
ini_set("SMTP", "mail.myisp.com");
ini_set("sendmail_from", "myname@myisp.com");
mail("myname@myisp.com",
"This is a test subject",
"This is the test body",
"From: "myname@myisp.com", "-fmyname@myisp.com");
I can execute the script with no error but I receive no mail at all.
Whatelse I did not do correctly?
Sorry, I have been reading php manual, sendmail books but guess I'm
stupid enough not to get it work. Sometime interactive and advice from
person might help more.
Help anyone kind enuf to help me.
PS: Sorry for my cross post..I'm desperate. I'll scold myself for this :-)
--
"If you start doing things because you hate others and want to screw
them over the end result is bad."
"Most people don't want to change. They may hate Windows but they run it
despite that because, quite frankly, they don't care about computers."
--- Linus Torvalds
|