mail() and windows and mail server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

mail() and windows and mail server

Post 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!
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

...

Post by Calimero »

Anyone, any ideas ?
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post 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.
Post Reply