freakythumbs Posted December 10, 2007 Share Posted December 10, 2007 I have googled & searched for answers on this one but cant figure it out - im converting my ASP pages (which successfully used the CDONTS function) to PHP and using the Mail() function but I cant even send a simple email. The php.ini is set to use the localhost on port 25 and the code is: <?php // The message $message = "Line 1\nLine 2\nLine 3"; // In case any of our lines are larger than 70 characters, we should use wordwrap() $message = wordwrap($message, 70); // Send mail('sample@example.com', 'My Subject', $message); ?> Any reason why it wouldnt work? PHP is working fine ... Quote Link to comment Share on other sites More sharing options...
Crew-Portal Posted December 10, 2007 Share Posted December 10, 2007 Does your server.ini have a password set up for your STMP server? Quote Link to comment Share on other sites More sharing options...
freakythumbs Posted December 10, 2007 Author Share Posted December 10, 2007 hi, i dont know. im not even sure ive got a server.ini file. where would i find it on the server? ive checked the PHP & windows folders, thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.