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('[email protected]', 'My Subject', $message); ?> Any reason why it wouldnt work? PHP is working fine ... Link to comment https://forums.phpfreaks.com/topic/80946-basic-mail-function-not-working-on-iis-60-server/ 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? Link to comment https://forums.phpfreaks.com/topic/80946-basic-mail-function-not-working-on-iis-60-server/#findComment-410633 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 Link to comment https://forums.phpfreaks.com/topic/80946-basic-mail-function-not-working-on-iis-60-server/#findComment-410639 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.