Page 1 of 1

mail() and windows and mail server

Posted: Fri Aug 13, 2004 8:43 am
by Calimero
Problem:

I changed in php.ini mailserver adress from 127.0.0.1 to the adress of my mail server.

But>

my mail server can't create account without a password
and php requires some mail adress ex: mymailbox@mail.mydomain.com to send from.


How do I solve this?

If I need to insert the password inside the php.ini, where and how to do it, or if you have another way of doing this, please tell me.


Thanks Ahead!

...

Posted: Fri Aug 13, 2004 2:29 pm
by Calimero
Anyone, any ideas ?

Posted: Fri Aug 13, 2004 3:38 pm
by Buddha443556
There are some SMTP class that might help at http://www.phpclasses.org/ . I use (modified) one for testing on Windows using a domain based email account. Think I modified this one http://www.phpclasses.org/browse/file/1168.html seems to be the most simple. In your case you'll also probably need to add a domain to your Windows' Host file too.

Something like...

127.0.0.1 mail.devnetwork.net

Some domain you don't actually use. Don't want to cause yourself any email problems.